How to make a class or a bean serializable?

Q

How to make a class or a bean serializable?

✍: Guest

A

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.

2013-04-01, 1941👍, 0💬