Im new here and I have made a game in java. When I am serializing my objects to save the current game, I can deserialize them back normally. But what if I want to make an update for the game (i.e change few classes, add more fields)? When I try to load back the last game after making a change the classes wont fit anymore the the file I serialized to. I want to load all the last game's details and the new fields to be initialized as a default I decide in the code.
p.s - Its not a multiplayer game/requires any connection, the files are saved in the computer the game is installed.
Any suggestions?