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 hashmap and map?
How the interruptible method gets implemented?
Is arraylist sorted in java?
Explain the difference between private, public, package and protected in java?
How do you implement tree mirroring in java?
What is heterogeneous in java?
What is internal variable?
how to deploy tomcatserver to weblogic server? write d following steps?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is arraylist e?
What does this mean java?
Can you sort a list in java?
How a variable is stored in memory?
What is binary search in java?
How to restrict a member of a class from inheriting by its sub classes?