Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, 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.
when the variable is declared as tranisent , then we cannot store its data in persisent satage
The transient modifier is variable level.If we give a variable as transient,we are telling the JVM to skip the variable when attempting to serialize the object.