Home » JAVA Programming » Serialization » Question
  1. How an object can become serializable?
    1. No object is serializable
    2. Any object is serializable
    3. If a class implements java.io.Serializable class
      b)
    4. If a class or any superclass implements java.io.Serializable interface
    5. None of these
Correct Option: C

A Java object is serializable if class or any its superclass implements java.io.Serializable or its subinterface java.io.Externalizable.



Your comments will be displayed only after manual approval.