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 is static import in java? Explain
What is string :: npos?
What are extraneous variables examples?
What are decalarations?
Is java developer a good career?
What is a locale?
Why a dead thread occurs?
When do I need to use reflection feature in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What are the different types of multitasking?
How to sort a collection of custom Objects in Java?
What is a nested list?
What is not thread safe?
What is sizeof () operator?
What are three ways in which a thread can enter the waiting state in java programming?