Chapter 22: Security Flashcards
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;
OCP Java SE 17 (1Z0-829) > Chapter 22: Security > Flashcards
How do we prevent a field, which for example has sensitive information, to be serialized?
By applying the transient keyword.
// private transient int age;
OCP Java SE 17 (1Z0-829) (21 decks)