Ask Question

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.

+5
Answers (1)
  1. 3 November, 23:59
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers