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...

Is it possible to make an array volatile?

Answer Posted / glibwaresoftsolutions

It is not possible to create a volatile with Java. Only individual variables in Java can use volatile keywords; arrays and collections cannot. When a variable is specified as volatile, its value is never cached in a thread's local memory; instead, it is always read from and written to the main memory. This makes it simpler to ensure that any changes made to the variable are visible to all threads that access it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashmap and map?

957


How the interruptible method gets implemented?

912


Is arraylist sorted in java?

944


Explain the difference between private, public, package and protected in java?

990


How do you implement tree mirroring in java?

1010


What is heterogeneous in java?

899


What is internal variable?

962


how to deploy tomcatserver to weblogic server? write d following steps?

1912


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

981


What is arraylist e?

1018


What does this mean java?

1028


Can you sort a list in java?

917


How a variable is stored in memory?

921


What is binary search in java?

945


How to restrict a member of a class from inheriting by its sub classes?

1284