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
Is age a discrete variable?
Explain the meaning of java applet.
Explain about automatic type conversion in java?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
Can a constructor call another constructor?
What is the difference between stream and buffer?
How many bits is a float?
What is files manifesting?
Why to use nested classes in java?
What is an i/o filter?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What is boolean example?
What is boolean law?
What is a qms manual?
What is a nested class?