Friday, 4 May 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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...