Which of the following statements are true? You may need to select more than one
ID: 3854005 • Letter: W
Question
Which of the following statements are true? You may need to select more than one answer.
A. ObjectInputStream/ObjectOutputStream enables you to perform I/O for objects in addition for primitive type values and strings.
B. Since ObjectInputStream/ObjectOutputStream contains all the functions of DataInputStream/DataOutputStream, you can replace DataInputStream/DataOutputStream completely by ObjectInputStream/ObjectOutputStream.
C. To write an object, the object must be serializable.
D. The Serializable interface does not contain any methods. So it is a mark interface.
E. If all the elements in an array is serializable, the array is serializable too.
C. To write an object, the object must be serializable.
D. The Serializable interface does not contain any methods. So it is a mark interface.
E. If all the elements in an array is serializable, the array is serializable too.
Explanation / Answer
Answer: Below statements are true.
A. ObjectInputStream/ObjectOutputStream enables you to perform I/O for objects in addition for primitive type values and strings.
C. To write an object, the object must be serializable.
D. The Serializable interface does not contain any methods. So it is a mark interface.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.