create a java object from a serialization code example
Example: serialization of object in java
Serialization in Java is a mechanism of writing
the state of an object into a byte-stream.
It is mainly used in Hibernate, RMI, JPA, EJB and JMS technologies.