What is the difference between a text file and a binary file?
Text files contain ASCII characters and binary files contain UNICODE characters
Text files contain are raw 8 bit bytes of 1's and 0's, binary files contain ASCII or UNICODE characters
Text files contain ASCII or UNICODE characters and binary files are raw 8 bit bytes of 1's and 0's
What is the advantage of a relative file path name over an absolute file path name?
Programs using relative path names do not care what directory the program is running from.
Programs using relative path names are easier to move to new and/or different computers.
Programs using relative path names specify the FULL path to a file, absolute paths are partial.
Which answer is ALL true regarding a File object:?
It can tell you if a file exists, tell you the length of a file, it can tell you if the path is a directory
It can tell you if a file exist, can write a text file to disk, it can indicate if the path is a directory
It can tell you if a file exist, tell you the length of a file, it can read and write to a file.
It can read a text file from disk, tell you the length of a file, it can indicate if the path is a directory
Reading and writing text files using Java is easy because:
Writing files is just like using Scanner object and reading files is just like using System.out.
The PrintWriter and Scanner objects are automatically created for you.
Writing files is just like using System.out and reading files is just like using a Scanner object.
The PrintWriter and Scanner objects are the ONLY objects needed.
Which answer best describes the try-catch statements?
try-catch are exception handling statements that let the programmer control what happens when a problem occurs.
try-catch are exception handling statements that let the JVM control what happens when a problem occurs.
try-catch are exception objects that let the programmer control what happens when a problem occurs.