Java OCP 11 > 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;