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

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.

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