Java Coder
What is a transient variable?
1 Answer(s)      2 years and a month ago
Posted in : Java Beginners

Hi,

What is a transient variable?

Thanks,

Advertisement
View Answers

April 17, 2013 at 12:24 PM


Hi,

Any variable which is altered(modified) with transient keyword becomes transient variable in java. It will be beneficiary for beginner java developers to know about Serialization in before understanding to transient variable. The Serialization is a process in which the object's state is saved by JVM and during deserializaiton it?s recovered by JVM. During the process of Serialization all property of object gets saved except static and transient.

For more details about transient variable in Java visit below link:

http://www.roseindia.net/java/example/java/util/transient-variable.shtml

Thanks,