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

What are runtime exceptions?

1109


What is the use of jtable?

1059


What is the most important feature of java? What is an interface?

952


What is polymorphism and what are the types of it?

941


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

1118


What is string args [] in java?

973


What is your platform’s default character encoding?

1016


What is the difference between a switch statement and an if statement?

1014


How to create com object in Java?

1009


What are methods in java?

941


Can we override static methods in java?

1012


Explain different types of thread priorities ?

1036


State differences between C and Java?

1145


why Interface used?

950


What is an example of declaration?

945