whenever I see this line of code
private static final long serialVersionUID =
it's always followed by some long serial number.. how is this number generated? If I wanted to randomly generate this value, how would I go about that? thanks for any help.
JDK
The JDK ships a tool called
serialver. You give it a classname and it will generate a serialVersionUID for you. For example:IntelliJ
For the IntelliJ IDE, try: IntelliJ IDEA generating serialVersionUID