What happens when I use an ObjectInputStream to read in a serialized object that is incompatible with the one currently defined in the program?
Do I get an exception or just totally mangled data?
Does it make any difference if I updated the serialVersionUID (as required) when compiling the newer version?
I have looked around and can’t seem to find what happens – only that you must update serialVersionUID.
This answer sums it up: