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

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 ?    30 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can classes declared using the abstract keyword cab be instantiated?

1006


What is oops in java?

956


What does arrays sort do in java?

961


Why we override equals() method?

981


How does hashset work in java?

1060


What is the length of a string?

958


Explain about field hiding in java?

881


What is initial size of arraylist in java?

992


How do you replace a string in java?

960


Can we create object of static class?

970


What is xslt in java?

934


How can you traverse a linked list in java?

1071


Explain about fail safe iterators in java?

962


is there a separate stack for each thread in java? : Java thread

929


What are loops in java? What are three types of loops?

983