Chapter 22: Security Flashcards
(1 cards)
1
Q
How do we prevent a field, which for example has sensitive information, to be serialized?
A
By applying the transient keyword.
// private transient int age;
How do we prevent a field, which for example has sensitive information, to be serialized?
By applying the transient keyword.
// private transient int age;