What is a transient variable?
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: