Intermediate Java
Q64 / 100

What does the transient keyword do?

Correct! Well done.

Incorrect.

The correct answer is B) Prevents a field from being serialized

B

Correct Answer

Prevents a field from being serialized

Explanation

Fields marked transient are skipped during Java serialization, useful for sensitive data or non-serializable objects.

Progress
64/100