My friend asked me if we serialize an object in java 1.5 and then deserialize it back in java 1.6 then it will throw an exception. What is that exception and why that is thrown?
But i doubt there will be any exception. Reason being nothing is changed in class definition, so it should not face any problem in rebuilding the object back from the serialized form. Am i right? If not, then what and why the exception is thrown?
Note: The class remains untouched not any field, not methods and not serialVersionUID is changed.