I write a class that implements Serializable. The compiler gave me warning that I did not create a static
serial UID for it. Usign
IDE's quick fix, I saw two options -- One is to create a default UID and the other is to create a generated UID.
I chose to create a generated UID and it added a long int to the class. I also tried using a default UID then it added a "1L" to the class.
My question is --- What's the difference between them and is it fine that I chose to use a generated ? Secondly, the default looks so common (1L), wouldn't it be used by other classes as well ? Why does it creates such a common UID (1L) ?