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

Is java a pure object oriented language?

920


What is the purpose of extern variable?

966


Is string a class in java?

934


What are functions in java?

907


what is synchronization and why is it important? : Java thread

1029


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

935


What are strings in physics?

971


How large is a boolean?

959


What is a line break example?

944


Is string is a class in java?

903


Write a program to search a number in the given list of numbers.

997


Explain about narrowing conversion in java?

968


How to implement a multithreaded applet?

2619


Difference between a process and a program?

1065


Explain how to convert any java object into byte array.

933