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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -