Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Yes, you can make an array (both primitive and reference type array e.g. an int array and String array) volatile in Java but only changes to reference pointing to an array will be visible to all threads, not the whole array | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  arrays  volatile | ||||
Related Questions | ||||
How does volatile affect code optimization by compiler? | ||||
What is Volatile keyword used for ? | ||||
how is the internal code for the "volatile" implemented ? | ||||
What are the different ways to avoid multi Threading related problems in Java ? | ||||
Have you heard of volatile Table in Teradata ? | ||||
what is volatile and atomic | ||||