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 the principle concepts of oops?
What is difference between hashset and hashmap?
What are advantages and disadvantages of OOPs?
Can we use different return types for methods when overridden?
What is ternary operator in java?
Where is the find and replace?
What does this () mean in java?
Is object a data type in java?
when you will synchronize a piece of your code? : Java thread
What is a marker interface?
How do you convert string to int in java?
What are the advantages of autoboxing?
What is a native method in java programming?
what is the purpose of using rmisecuritymanager in rmi?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls