wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization question" Watch "Serialization question" New topic
Author

Serialization question

Costa lamona
Ranch Hand

Joined: Sep 24, 2006
Posts: 102
Hi

"A Serialized object can be deserialized only by the same JVM which used to serialize that object"

I can't remeber that I have read that in K & B book, any way, explain it please.

thanks


SCJP 5
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

It simply means you cant serialize a class using (for example) java 1.3.1 and deserialize it in java 1.4.2

You can deserialize it using java 1.3.1 only. This applies for any other build of java 1.3 too. You cant deserialize using java 1.3.2 ( or something like that ) since the serial version UID would be different.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
jQuery in Action, 2nd edition
 
subject: Serialization question
 
Similar Threads
Is transfer object pattern the same as value object pattern?
How many objects eligible for GC??
Corejava Question ??
convert String into Object
disabling right click using jquery