A quick question I was wondering if anyone had an answer to. When setting the serialVersionUID in a class is there any benefit to setting it to any particular value?
You can generate a value for the serialVersionUID.
IDE's like Eclipse will do this for you. Where the generated value is based on the structure of the class just like
Java will do at runtime if you don't set the serialVersionUID value.
But why bother doing this? Why not just assign 1 to the first version of the class? Then increment this value by 1 each time you want to change it?