3 |
In saving a Java Object, we save the values of data members but assume that the entity reading back object has access to class definition so that one just needs data member values to define instance
-
Only save public, protected and private members but not static ones as these are defined in class definition
-
transient variables are not saved
-
If you have confidential data declare it as private transient (and define its value in encoded fashion using non transient variables) or use Externalizable Interface
|