Which of the following streams is used to deserialize the primitive data and…

2024

Which of the following streams is used to deserialize the primitive data and objects in Java?

  1. A.

    PrintWriter

  2. B.

    BufferedReader

  3. C.

    FileWriter

  4. D.

    ObjectInputStream

  5. E.

    Question not attempted

Attempted by 77 students.

Show answer & explanation

Correct answer: D

ObjectInputStream is used to deserialize primitive data and objects that were previously written to a stream.

Explore the full course: Up Lt Grade Assistant Teacher 2025