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

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 the program development process?

924


What is the final blank variable?

1066


What is the difference between @before and @beforeclass annotation?

1012


What is meant by vector class, dictionary class, hash table class, and property class?

1081


How many bits is a char?

917


What does 3 dots mean in java?

921


What is general methodology?

976


How many bits is a string?

937


Why is inheritance used in java?

1057


What are the differences between wait() and sleep()?

957


how to create multithreaded program? Explain different ways of using thread? : Java thread

906


is there a separate stack for each thread in java? : Java thread

928


Is the milky way in a void?

912


Explain about wait() method?

976


What is annotation in java?

992