Friday, May 4, 2018

serialization - Why serialVersionUID in java must be static, final, and of type long?


  1. Why serialVersionUID must be declared as static, final and of type long variable?

  2. Does this serialVersionUID be unique?

  3. What happens when two or more classes contains the same serialVersionUID? How will this versionUID be useful in this case to deserialize the byte array?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...