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

Does treeset use compareto?

1024


Can we have 2 main methods in java class?

1069


What are disadvantages of java?

1044


What is the difference between menuitem and checkboxmenu item?

1382


What is method overloading with type promotion?

1345


Can we use both this () and super () in a constructor?

1049


What is the file extension for java?

1124


Is 64bit faster than 32 bit?

1123


What is the lifetime and scope of a variable?

1062


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1107


How to sort elements in a parallel array in java?

951


What are the main differences between notify and notifyAll in Java?

1148


What is a literal coding?

1067


What is difference between static and abstract class?

1063


Is it possible to use string in the switch case?

1103