Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes one question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "one question" Watch "one question" New topic

one question

Jack Nicholson
Ranch Hand

Joined: Sep 07, 2002
Posts: 41
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.

Jack Nicholson
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
All you need to do is read the Javadocs for Serializable.
I agree. Here's the link:
subject: one question
It's not a secret anymore!