What happens when an end-of-file marker is reached (and the program is using an ObjectInputStream to read data from a file) ?
A) Nothing occurs.
B) An end-of-file character is read by the program.
C) Method readObject returns the value 0.
D) An EOFException is thrown.
Correct Answer:
Verified
Q2: How do methods setIn,setOut and setErr affect
Q4: Which statement regarding Java files is false?
A)
Q5: Which of the following statements is true?
A)
Q6: Which of the following statements is false?
A)
Q10: Which of the following is not an
Q12: Adding the services of one stream to
Q14: Relative paths normally start from which directory?
A)The
Q18: Which of the following classes is not
Q20: A serialized object is _.
A)an object represented
Q26: Instance variables that are not to be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents