This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

one question  RSS feed

 
Jack Nicholson
Ranch Hand
Posts: 41
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you need to do is read the Javadocs for Serializable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!