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

Is namespace same as package in java?

975


Why are generics used?

960


Differentiate between the constructors and methods in java?

937


Is null keyword in java?

933


What is string manipulation?

992


What is generics in java interview questions?

1053


explain autoboxing in java?

990


How do I run java on windows?

1161


What is a concrete classes? Is Java object class is concrete class?

967


How to split a string in java?

1121


When do I need to use reflection feature in java?

1071


Explain about OOPS concepts and fundamentals.

1037


How do you trim a space in java?

973


Which methods cannot be overridden in java?

981


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1110