DEVFYI - Developer Resource - FYI

Explain the usage of the keyword transient?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

102. Explain the usage of the keyword transient?

This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).

(Continued on next question...)

Other Interview Questions