JavaBlogging » What is serialVersionUID? - 2 views
-
private static final long serialVersionUID = 1L
-
and it is still there even after the program finished. Let’s see if we can read that file once again, this time without creating it first.
-
Now, let’s see what happens, when we change the serialVersionUID value and try to deserialize once again our file. Change the line 2 in the class SerializeMe so that serialVersionUID contains now 2 instead of 1:
- ...13 more annotations...