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...

What is Transient and volatile

Answer Posted / sudhadevi

Transient
~~~~~~~~~
identifies a variable not to be written out when
an instance is serialized (It can'nt be copied to remove
system)

Volatile
~~~~~~~~
indicates that the field is used by synchronized
threads and that the compiler should not attempt to perform
optimizations with it.When more than one thread share a
(volatile) data it is checked every time. Every thread
keeps the latest value of volatile variable

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the class in java?

1117


What is the use of optional ?

1087


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

1032


How many characters is 16 bytes?

1046


Differentiate between == and equals().

1093


Give example to differentiate between call by value and call by reference.

1108


Why java strings are immutable in nature?

1126


How to sort a collection of custom Objects in Java?

1108


How to print an arraylist in java?

1162


Is singleton a bad practice?

1104


What is set string?

1291


What is anagram number?

1018


What is memory leak and how does java handle it?

1030


How will you compute size of a structure?

1266


How to perform merge sort in java?

1118