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 namespace same as package in java?
Why are generics used?
Differentiate between the constructors and methods in java?
Is null keyword in java?
What is string manipulation?
What is generics in java interview questions?
explain autoboxing in java?
How do I run java on windows?
What is a concrete classes? Is Java object class is concrete class?
How to split a string in java?
When do I need to use reflection feature in java?
Explain about OOPS concepts and fundamentals.
How do you trim a space in java?
Which methods cannot be overridden in java?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?