Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serializable

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
There are some classes that implements Serializable. What useful have the interface Serializable?
Thank you in advance.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serializable is not covered in the Programmer exam
Marcus
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The interface Serializable indicates that you can write an object out to a file or byte stream. Java uses this to move objects around between systems, store objects in files and retrieve them later, etc. Take a look at the java.io package - classes like ObjectInputStream and ObjectOutputStream. Pretty cool technology.
Bill
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
java.io.Serializable is a tag interface which suggests that the state of the object is saved.You use it in distributed computing like RMI, when you have to send information across machines.
Hope this helps,
Sandeep
SCJP2, OCSD(Oracle JDeveloper), OCED(Oracle Internet Platform)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic