Ask Question
3 May, 09:30

Which of the following statements are true? Select all that apply. A. Since ObjectInputStream/ObjectOutputStream contains all the functions of DataInputStream/DataOutputStream, you can replace DataInputStream/DataOutputStream completely by ObjectInputStream/ObjectOutputStream. B. 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. ObjectInputStream/ObjectOutputStream enables you to perform I/O for objects in addition for primitive type values and strings. E. The Serializable interface does not contain any methods. So it is a marker interface.

+3
Answers (1)
  1. 3 May, 13:00
    0
    Correct options are A, B, D, E

    Explanation:

    For option A, D, E:

    reference : Book: Object Oriented Programming with Java

    chapter 5 and section 5.4 Object I/O

    for option 'C' it incorrect statement because to write an object it is not necessary to be serialize.

    for option B it is correct because if all attributes of array having type T then we can say array is of type T implying the same statement for serialization.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following statements are true? Select all that apply. A. Since ObjectInputStream/ObjectOutputStream contains all the functions ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers