File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

one question

 
Jack Nicholson
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Recently, I was faced with some questions
which i fail to answer.
can anybody tell me the right answer?
1) In EJB, we are using Custom Objects, which implements Serializable interface, for persisting the data.
As it is marker interface, no method is defined in it.
But still how the Custom object class uses readObject() & writeObject() method for saving state? & it is possible just by implementing marker interface only?
What exactly it does internally?
can any body tell me?
Thanx in advance.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you need to do is read the Javadocs for Serializable.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic