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
What is the program development process?
What is the final blank variable?
What is the difference between @before and @beforeclass annotation?
What is meant by vector class, dictionary class, hash table class, and property class?
How many bits is a char?
What does 3 dots mean in java?
What is general methodology?
How many bits is a string?
Why is inheritance used in java?
What are the differences between wait() and sleep()?
how to create multithreaded program? Explain different ways of using thread? : Java thread
is there a separate stack for each thread in java? : Java thread
Is the milky way in a void?
Explain about wait() method?
What is annotation in java?