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
How do you create a bulleted list?
How do you compare arrays in java?
What is your platform?s default character encoding and how to know this?
What is set in java?
What are the differences between abstract class and interface?
What is the purpose of the return statement?
Is binary a low level language?
What is string builder in java?
What is jvm? How its run?
Is ++ operator is thread safe in java?
Give me an example of array and linked list? Where they can be used?
Explain the available thread states in a high-level?
Can you explain the final method modifier?
Can a class be declared as protected?
How is a variable stored in memory?