DEVFYI - Developer Resource - FYI

What is a transient variable?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

20. What is a transient variable?

A transient variable is a variable that may not be serialized. If you don't want some field to be serialized, you can mark that field transient or static.

(Continued on next question...)

Other Interview Questions