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
Is java a pure object oriented language?
What is the purpose of extern variable?
Is string a class in java?
What are functions in java?
what is synchronization and why is it important? : Java thread
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
What are strings in physics?
How large is a boolean?
What is a line break example?
Is string is a class in java?
Write a program to search a number in the given list of numbers.
Explain about narrowing conversion in java?
How to implement a multithreaded applet?
Difference between a process and a program?
Explain how to convert any java object into byte array.