Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote