Serialization is a marker interface. When an object has to be transformed over a network(typically through RMI or EJB) or persist the state of an object to a file, the Object class needs to implement Serializable interface. Implementing this interface will allow the object converted into byte stream and transfer over a network.
No comments:
Post a Comment