Multiple choice java

A class can be transient

  1. True

  2. False

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

Classes themselves cannot be transient. The 'transient' keyword applies to fields in serialization (like Java), indicating which fields should not be serialized. A class as a whole is not marked transient - only individual member variables can have this modifier.