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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly