Multiple choice

Which of the following is/are true about serialization in java?

  1. By using serialization process, the state of the variable can be represented as a sequence of bytes.

  2. Serialization is a platform independent process.

  3. ObjectInputStream class is used to serialize or deserialize the object.

  4. All of the above are true

  5. Only (1) and (3) are true

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, all the above three statements determines the properties of the serialization process.