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 is a native method in java programming?

1068


what is deadlock? : Java thread

1009


Explain about the main() method in java?

1109


What is difference overloading and overriding?

1170


What is skeleton and stub? What is the purpose of those?

1129


Give the difference between the println method and sqrt method?

1085


What is an image buffer?

995


What is a condition in java?

1008


What are the 3 types of control structures?

1017


What is the largest number a double can hold?

1045


What are some characteristics of interference class?

996


What is thread start?

959


How do you reverse a word in java?

1078


What happens if a constructor is declared private?

1036


What class allows you to read objects directly from a stream in java programming?

1076