serialization of objects in java code example Example: import java.io.serializable import java.io.Serializable;