This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Re: Serializable Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Re: Serializable Class" Watch "Re: Serializable Class" New topic
Author

Re: Serializable Class

Joe Cheung
Ranch Hand

Joined: Oct 18, 2002
Posts: 104
Dear all,
What is the use of Serializable? Under what situation does a class need to extend Serializable?
Regards,
Joe


Joe
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The manual, or manuals, that David refers to might include the Object Serialization secion of Sun's Java Tutorial, and the documentation for the interface Serializable.
From these, you might notice that objects are sometimes serialized in order to save them (or their state) to a file, or to transmit them from one JVM to another (perhaps over the internet).
[ May 09, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
Consider Paul's rocket mass heater.
 
subject: Re: Serializable Class
 
Similar Threads
Why both GenericServlet and HttpServlet implements Serializable interface ?
Exchanging data between servlets and Session Beans
RE: Receiveing ObjectMessage in JMS
what are the classes that supports a class when it is serialized?
Singleton class