Multiple choice technology web technology

While serializing a class whose Base class is serializable, which of the following fields are ignored?

  1. Non Static field

  2. Base class fields

  3. Transient Fields

  4. none

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

During Java serialization, transient fields are explicitly ignored and not included in the serialized output. The transient keyword is used specifically to mark fields that should not be serialized. Static fields are also not serialized, but the question specifically asks about which fields are ignored, and transient is the key mechanism for this purpose.