Solution:
If you define any data member as transient, it will not be serialized. By determining transient keyword, the value of variable need not persist when it is restored
Credit: 3675