how to implement serialization in java code example Example: import java.io.serializable import java.io.Serializable;