Answers for "what is transient in java"

0

what is transient in java

transient is a variables modifier used in serialization. 
At the time of serialization, if we don't want to save value 
of a particular variable in a file, then we use transient keyword.
When JVM comes across transient keyword, it ignores original value
of the variable and save default value of that variable data type.
Posted by: Guest on May-04-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language