145. 1. Place the codes into the empty box in order to write "Java!"
to the end of a.txt rather than the beginning.
146.
147. 2. Which statements concerning Serialization are true?
(Choose all that apply.)
A. The field with static modifier will not serialized.
B. The field with volatile modifier will not serialized.
C. The field with transient modifier will not serialized.
D. An serialized object can be deserialized on a different
JVM.
E. An serializable object can be serialized even if it's
superclass doesn't implements java.io.Serializable.
F. An object array can not be serialized.
150. What is the result?
A. Only an instance of Box object is serialized.
B. An instance of Box and An instance of Book are
serialized.
C. Compilation fails.
D. An java.io.NotSerializableException: Box is thrown.
E. An java.io.IOException: Box is thrown.
152. What is the result?
A. Deser:288
B. Deser:388
C. Deser:888
D. Compilation fails.
E. An exception is throws at runtime.
153. 5. Which method exists only in one of the BufferedWriter and
FileWriter classes.
A. open();
B. close();
C. write();
D. toString();
E. newLine();
F. flush();
154. 6. Which Place the correct Words into the following empty
boxes:
155.
156. 7. Please drag and drop the appropriate codes into
the empty boxes :
158. Which code, inserted at line 10, will allow Point to serialized
and deserialized correctly.
A. is.defaultReadObject();
B. x = is.readInt(); y = is.readInt();
C. y = is.readInt(); x = is.readInt();
D. is.defaultReadObject(); x = is.readInt(); y = is.readInt();
E. y = is.readInt(); x = is.readInt(); is.defaultReadObject();