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 are static methods?

1054


How can you set an applet’s height and width as a percentage?

934


What is difference between core java and java ee?

904


What does indexof mean?

1030


What is prefix of a string?

1041


Can you declare the main method as final?

1018


What is t in parametric equations?

991


State some advantages of java?

1244


Explain about data types?

1090


Difference between static synchronization vs. Instance synchronization?

1129


When will we use them?

1057


How does varargs work in java?

1102


Why is stringbuffer thread safe?

1051


Can we catch more than one exception in single catch block?

1051


do I need to use synchronized on setvalue(int)? : Java thread

1014