aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Pupose of implementing java.io.serializable interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Pupose of implementing java.io.serializable interface?" Watch "Pupose of implementing java.io.serializable interface?" New topic
Author

Pupose of implementing java.io.serializable interface?

Gowtham Krishna
Greenhorn

Joined: Dec 28, 2009
Posts: 3
Dear All,
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...

[ UD: Please use font attributes sparingly. ]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

"Gowtham India" please check your private messages for some administrative matter.

Also don't use unnecessary formatting in your post. It sometimes makes it hard to read...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
shilpa deshpande
Greenhorn

Joined: Sep 06, 2007
Posts: 7
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.
Gowtham Krishna
Greenhorn

Joined: Dec 28, 2009
Posts: 3
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Pupose of implementing java.io.serializable interface?
 
Similar Threads
Conversational state and passivation
Appending an object to a file does not work
Session Management in Websphere 3.5
Implementing Serializable
SERIALIZABLE INTERFACE