Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why to use transient variables when static variables can be
used for Serialization

Answer Posted / lenina

only non static and non transient variables can be serialized.

if we want a variable to be instance variable,but the
variable is non serializable variable, then we declare that
variable as transient. here exactly we can make use of
transient.

Is This Answer Correct ?    26 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string passed by reference in java?

994


What is the static block?

1065


What do you understand by the bean persistent property?

1006


What is internal iteration in java se 8?

1191


How many java versions are there?

1044


What is regex used for?

988


Does java vector allow null?

950


How will you serialize a singleton class without violating singleton pattern?

1948


How can we create an immutable class in java?

1060


Is string thread safe in java?

1078


What is static data type in java?

1025


Which sorting is best in java?

994


What is the concatenation operator in java?

1147


What is object cloning in Java?

1101


What is a stringbuilder?

903