Multiple choice java How can you prevent a member variable from becoming serialized? By marking it private By marking it volatile By marking it transient You can not. Reveal answer Fill a bubble to check yourself C Correct answer Explanation The transient keyword in Java explicitly prevents a field from being serialized. When an object is serialized, transient fields are skipped and get default values upon deserialization.