Multiple choice technology programming languages

A transient variable may be serialized.

  1. True

  2. False

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

The transient keyword in Java specifically prevents a field from being serialized. When an object is written to a byte stream, transient fields are skipped and will have default values when the object is deserialized.