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 a stringbuffer?

975


What is the difference between a method and a function in alice?

1202


What is scanner in java?

956


What is the inheritance?

975


What is meant by stack and queue?

1072


What are the basic interfaces of java collections framework?

1121


Which number is denoted by leading 0x or 0x in java?

1046


Can constructor be protected in java?

970


What will be the initial value of an object reference which is defined as an instance variable?

1151


Why does java does not support multiple inheritance? Explain

978


What is t in parametric equations?

991


What is the final keyword?

989


When parseint method can be used?

955


How do you sort words in java?

938


Can static method access instance variables ?

1142