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

What are predefined functions?

1203


What is the role of the java.rmi.naming class?

1145


What is ‘has a’’ relationship in java?

1277


Is map ordered in java?

996


Is string passed by reference in java?

1047


What are the library functions in java?

1105


What happens if an exception is throws from an object's constructor?

1179


What happens when I use / and % with a negative numerator?

1079


What does || || mean in math?

994


What is meant by 'bit masking' in java?

1260


What is string subsequence method?

1176


What are the types of web technologies?

1081


Explain java thread life cycle.

1088


Can inner class extend any class?

1097


What is string [] args?

1060