Ask Question
20 June, 15:39

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.

+4
Answers (1)
  1. 20 June, 19:29
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers