Multiple choice

Which Java keyword should be used with a data member to make it non-serializable?

  1. private

  2. public

  3. transient

  4. unserialize

  5. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct answer. If a data member is made transient, it will not be serialized.