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
What are facelets templates?
What is preflight request?
What is the primitive type byte?
What is bubble sort in java?
What is meant by interface?
What is difference between array and vector?
What is the difference between access specifiers and access modifiers in java?
What is meant by method?
What are the important methods of java exception class?
List some important characteristics on jre
What is the exception hierarchy in java?
Describe the term diamond problem.
What is nextline method in java?
Is singleton thread safe in java?
How do I convert a string to an int in java?