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;