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

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 ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does constructor creates the object ?

1043


What will happen when using pass by reference in java?

995


What is Gang of four design patterns

1058


What are the differences between path and classpath variables?

1042


How can we find the sum of two linked lists using stack in java?

1157


Explain importance of inheritance in java?

1029


What is difference between public static and void?

1021


Write java program to reverse string without using api?

1067


Difference between static and dynamic class loading.

1129


What do you mean by pointer value and address?

1053


What is toarray method in java?

1108


What are latest features introduced with java 8?

1091


How do you sort in ascending order in java?

874


Explain java heap space and garbage collection?

1078


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

1031