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 differences between c++ and java? Explain

1044


What exceptions occur during serialization?

1085


Can we write a class without main method in java?

955


What do you mean by local variable and instance variable?

949


What does @param args mean in java?

1058


What is static variable with example?

1007


What do you mean by of string::valueof expression in java 8?

968


What is an infinite loop in java? Explain with an example.

1036


How thread scheduler schedule the task?

1053


What is meant by class?

999


Why null value is used in string?

1044


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

1023


Why is core java important?

1037


Is special character in java?

1095


How strings are created in java?

1035