Which of the following statements are true?

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.


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.

Computer Science & Information Technology

You might also like to view...

Animations control how slides come onto the screen

Indicate whether the statement is true or false

Computer Science & Information Technology

Under which Menu bar option is the dialog box in the accompanying figure found?

A. File B. Type C. Character D. Select

Computer Science & Information Technology

Which of the following is a function of an AIS?

a. reducing the need to identify a strategy and strategic position b. transforming data into useful information c. allocation organizational resources d. automating all decision making

Computer Science & Information Technology

Use the ____ button on the FORM LAYOUT TOOLS ARRANGE tab to add gridlines to a form.

A. Table B. Format C. Cells D. Gridlines

Computer Science & Information Technology