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
Explain method local inner classes ?
What are the benefits of java?
What is a percentage sign called?
Can list be null in java?
Why java is call by value?
What is floor math?
What do you mean by Function Overloading in java?
Why do we create threads in java?
Is null false in java?
What is navigable map in java?
Explain the pointers in Java?
Why are pointers not secure?
What is the purpose of an interface?
Is math class static in java?
Can we define a package statement after the import statement in java?