0

Say I have 100 variables in a class which implements the serializable interface.

I do not want to serialize 70 of those variables. How can I do this without using the transient keyword?

user207421
  • 305,947
  • 44
  • 307
  • 483
Singh306
  • 21
  • 4

1 Answers1

0

Define a serialPersistentFields member that defines the members to be serialised.

user207421
  • 305,947
  • 44
  • 307
  • 483