What are transient variables in java?

What are transient variables in java?

A transient variable is a variable that may not be serialized. It is not stored as part of its objects persistent state. The value of the variable can\'t be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.

By:Jalees
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher