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

What are the different http methods?

984


How to sort elements in a parallel array in java?

848


What is sorting algorithm in java?

1005


Is it safe to install java on my computer?

1056


What is the final field modifier?

939


how to write a server program and sending the mails to the server using smtp protocol please help me

2012


What is a qualifier in a sentence?

939


What is the difference between I ++ and ++ I in java?

933


What is difference between filereader and bufferedreader?

903


What is the most important feature of java? What is an interface?

961


what is use of functional interface in java 8?

983


What are the advantages of functions?

873


How do you remove spaces in java?

984


Which collection is thread safe in java?

943


What is extension method in java?

996