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

Difference between overriding and overloading in java?

1007


How do you get length in java?

972


What is nested interface?

959


Can a static block throw exception?

1046


What is meant by data hiding/encapsulation?

1044


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

938


Can list contain null in java?

1032


How to implement an arraylist in java?

1040


Can we define package statement after import statement in java?

955


Can you explain the usages of class.forname()?

1014


What is data object example?

938


What are exception handling keywords in java?

975


how would you implement a thread pool? : Java thread

845


Explain differences between checked and unchecked exceptions in java?

1016


What is the point of java?

968