This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 6661

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
subject: Serialization question
Similar Threads
convert String into Object
Is transfer object pattern the same as value object pattern?
How many objects eligible for GC??
Corejava Question ??
disabling right click using jquery