• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pupose of implementing java.io.serializable interface?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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. ]
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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...
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic