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 is a predicate method?

1065


What is the purpose of the main method?

1042


Difference between linkedlist and arraylist.

1121


How can you share data between two thread in Java?

992


What is the difference between comparison done by equals method and == operator?

1067


How strings are created in java?

1088


How do you convert string to int in java?

1146


What is math in java?

1119


How many types of interfaces are there?

1149


Discuss about garbage collector in Java.

1131


What is generics in java interview questions?

1140


How many types of constructors are used in java?

1275


Why java applets are more useful for intranets as compared to internet?

1132


What are the basic interfaces of java collections framework?

1182


How many bits is a 64 bit byte?

1143