how to get serialization of object in java code example Example: import java.io.serializable import java.io.Serializable;