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

If a class is declared without any access modifiers, where may the class be accessed in java programming?

1293


What is data and its types?

1049


What are some characteristics of interference class?

1056


What are the main concepts of oops in java?

1850


What do you mean Abstraction in java?

1122


What are the two ways in which thread can be created?

1105


What is the difference between numeric and integer?

1056


What are the string methods in java?

1132


Explain the pointers in Java?

1105


What is a percentage sign called?

1190


What is meant by stack and queue?

1124


Can an integer be a string?

1147


What is constructor in java ?

1255


What is return code?

1059


Difference between character constant and string constant in java ?

1054