Multiple choice technology programming languages

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. Static Field

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

During Java serialization, fields marked with the 'transient' keyword are explicitly ignored and not written to the serialization stream. This allows developers to exclude sensitive or non-serializable data. Static fields are also not serialized, but 'transient' is the specific mechanism for ignoring instance fields.