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

Which methods are used during serialization and deserialization process?

989


Is java util list serializable?

932


Explain the difference between a Thread and a Process.

1000


Is heap stored in ram?

964


Describe method overriding

1126


When object is created and destroyed?

1103


What is the purpose of default constructor?

1000


Does java return by reference?

999


How do you remove duplicates in java?

1019


What is lazy programming?

1039


What does %4d mean in java?

1479


What is the purpose of encapsulation?

1017


What is an object’s lock and which object’s have locks?

964


Can an object subclass another object?

1110


What is a singleton puppy?

985