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 are Transient and Volatile Modifiers?

Answer Posted / janet

Transient: The transient modifier applies to variable only
and it is not stored as part of it's objects persistent
state.Transient variables are not serialized.
Volatile: Volatile modifier applies to variables only and
it tells the compiler that the variable modified by
volatile can be changed unexpectedly by other parts of the
program.

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between error and an exception?

1146


What is equlas() and hashcode() contract in java? Where does it used?

1128


Which arithmetic operations can result in the throwing of an arithmeticexception?

1017


Is namespace same as package in java?

982


What is the collection interface?

1017


How does the java compiler work?

970


Which is better stringbuffer or stringbuilder?

916


Explain differences between collection api and stream api?

1176


what is the major difference between linkedlist and arraylist in java?

1206


Does string is thread-safe in java?

1081


Can a method be static?

963


Difference between string, stringbuffer and stringbuilder?

1022


What is the Scope of Static Variable?

1227


why Java does not support multiple inheritances?

1154


What are the important methods of java exception class?

1113