This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am very confused to understand the purpose of java.io.Serializable interface.
I am aware that java beans are implementing serializable interface..but what is the purpose.Even in EJB,session beans also implementing the serializable interface..
None of the developer`s explanation is making me understand...please help...
java.io.Serializable is a marker interface which defines that the class that implement this interface are serializable. Serialization is used when one needs to stores this object in a different system for example, a file, another JVM.
Joined: Dec 28, 2009
thanks for the answer.. i have one small doubt..
ObjectOutputStream is used for writing in files
and by implementing java.io.serializable to our session and entity bean makes the bean class to be accessed from any another JVM.. is it right?
but we dont implement serializable interface in RMI.. still having this doubt..please help
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Pupose of implementing java.io.serializable interface?