jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization question" Watch "Serialization question" New topic

Serialization question

Costa lamona
Ranch Hand

Joined: Sep 24, 2006
Posts: 102

"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.


Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Serialization question
It's not a secret anymore!