Serialization


  1. Which of these is a process of extracting/removing the state of an object from a stream?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Deserialization is a process by which the data written in the stream can be extracted out from the stream.


  1. Which of these process occur automatically by java run time system?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Serialization, deserialization and Memory allocation occur automatically by java run time system.



  1. Which of these interface extends DataInput interface?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ObjectInput interface extends the DataInput interface and supports object serialization.


  1. Which of these is a method of ObjectInput interface used to deserialize an object from a stream?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Object readObject()



  1. Which of these class extend InputStream class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ObjectInputStream class extends the InputStream class and implements the ObjectInput interface.