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 / pasindu

Trsnsient:
If you mark an instance variable as transient you're telling
the JVM to skip this variable when you attempt to serialize
the object containing it.

Volatile:
The volatile modifier tells the JVM that a thread accessing
the variable must always reconcile its own private copy of
the variable with the master copy in memory.
It can be apply only to instance variables.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a class implementing an interface, can we change the value of any variable defined in the interface?

1083


What is java basic concept?

1036


What is the difference between the direct buffer and non-direct buffer in java?

1032


What are the advantages of java over C++?

1197


Is singleton set an interval?

962


Explain the difference between static and dynamic binding in java?

1064


Why we override equals() method?

1031


What is vector?

1056


What is java util function?

1093


How do you clear a method in java?

1005


What are advantages of using Java?s layout managers than windowing systems?

2369


Name few java util classes introduced with java 8 ?

910


What is a ?

1199


What is the difference between yielding and sleeping?

1108


Explain the difference between protected and default access.

993