Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization question  RSS feed

 
Costa lamona
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!