ENVALE interview question

Q: When you get NotSerializableException? How to solve it?