Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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.
 
PREVIOUS NEXT
Tagged: #transient #java
ADD COMMENT
Topic
Name
2+7 =