java - Different classes with same serialversion uid -


i having strange doubt. want know is,

suppose if have 2 classes, (100% same structure) in 2 different locations (packages or projects), , take care of generating same serialversionuid both, can safely it's right serialize using 1 class , de-serialize using another?

p.s. understand it's not keep same class in 2 separate places, that's not question right now.

thanks ton.

objectinputstream read original qualified class name of object input data , try create instance of class. cannot change that. serialization looking original class no matter serialversionuid is.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -