Monday, 22 February 2016

What is Transient variable ?

Transient variable in java :- A transient variable is a variable that may not be serializable.
Or

A variable that won’t be allow for object serialization. So that the state of variable will always be defaulted after the deserilization.


For example a variable x has a default value is 0 and at serialization it may be assigned any value . when the serialization is completed it will be deserilized to it’s default value.

0 comments :

Post a Comment

Note: only a member of this blog may post a comment.

Machine Learning

More

Advertisement

Java Tutorial

More

UGC NET CS TUTORIAL

MFCS
COA
PL-CG
DBMS
OPERATING SYSTEM
SOFTWARE ENG
DSA
TOC-CD
ARTIFICIAL INT

C Programming

More

Python Tutorial

More

Data Structures

More

computer Organization

More
Top