The next 10 questions use the following terms as answers. ObjectInputStream Prin
ID: 3831068 • Letter: T
Question
The next 10 questions use the following terms as answers.
ObjectInputStream PrintWriter Checked ObjectOutputStream
Scanner Unchecked
Which class will write to a text file?
Which class will write an entire object to a file with one write method?
Which class will read from a text file?
Which class will read an entire object from a file with one read call?
Which class gives us methods such as nextInt() to read from a file?
Which class prives us methods like println() to write to a file?
Which class gives us the readObject() method?
Which class gives us the writeObject() method
This kind of exception MUST be handle in your code with a catch or throws statement, or the code will not compile.
It is not strictly necessary to handle this kind of exception in your code (but would make for a better program.)
Explanation / Answer
Which class will write to a text file?
PrintWriter
Which class will write an entire object to a file with one write method?
ObjectOutputStream
Which class will read from a text file?
Scanner
Which class will read an entire object from a file with one read call?
ObjectInputStream
Which class gives us methods such as nextInt() to read from a file?
Scanner
Which class prives us methods like println() to write to a file?
PrintWriter
Which class gives us the readObject() method?
ObjectInputStream
Which class gives us the writeObject() method
ObjectOutputStream
This kind of exception MUST be handle in your code with a catch or throws statement, or the code will not compile.
checked exception
It is not strictly necessary to handle this kind of exception in your code (but would make for a better program.)
unchecked exception
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.