1.

what is a transient variable in java

Answer»

A variable that donot allow for object serialisation. so that the STATE of the value will always be defaulted after the deserialisation.It is CALLED transient variables to UNDERSTAND this we TAKE a example of it:-
If a variable a's value is set to 9 and it's default value is '0'now when the object has been serialized having a's value 9, but after deserialisation will be defaulted to '0' .



Discussion

No Comment Found