This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Serialization ,persistency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialization ,persistency" Watch "Serialization ,persistency" New topic
Author

Serialization ,persistency

Ugochukwu Onwordi
Greenhorn

Joined: Oct 25, 2007
Posts: 11
Hi,everyone.please help me understand the difference between serialization and persistency.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
We had almost exactly he same question not long ago, which makes me think of homework or working through some list of questions. In that case, we probably won't give you the whole answer, but send you out to find it yourself.

Have you looked for definitions of the two terms? What seems similar or different? How might you use both at once?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ugochukwu Onwordi
Greenhorn

Joined: Oct 25, 2007
Posts: 11
I assure you its not for an assignment.i'm studying for an exam,my notes say there's a difference but don't go into details.I had always thought an object was serialized in order to store it permanently.
Ugochukwu Onwordi
Greenhorn

Joined: Oct 25, 2007
Posts: 11
I assure you its not for an assignment.i'm studying for an exam,my notes say there's a difference but don't go into details.I had always thought an object was serialized in order to store it permanently.
Majid Al-Fifi
Ranch Hand

Joined: Aug 22, 2006
Posts: 45
serialization is taking an object and storing it in a file so that it can be deserialized later to get it back in another runtime.

persistance refers to storing data of whatever form.

So one may say something like this:

"serilization is one way to provide persistence but it is not practical so better persistence methods must be used"

hope this helps


SCJP1.4, SCWCD1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization ,persistency
 
Similar Threads
What to use instead of JDBC
writing hashtable to a file
Question to Christopher Steel and Ramesh Nagappan
deserialization constructor execution doubt.
Seat references in the Segment