DEVFYI - Developer Resource - FYI

How to make a class or a bean serializable?

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

436. How to make a class or a bean serializable?

By implementing either the java.io.Serializable interface, or the java.io.Externalizable interface. As long as one class in a class's inheritance hierarchy implements Serializable or Externalizable, that class is serializable.

(Continued on next question...)

Other Interview Questions