Answer Posted / nashiinformaticssolutions
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 do you mean by stream pipelining in java 8? Explain
What are different types of expressions?
Is arraylist an object in java?
What does java ide mean?
What is communist flag?
What does @override mean?
What happens if an exception is not handled in a program?
What is meant by distributed application? Why are we using that in our application?
What is the difference between static (class) method and instance method?
How do you override a method?
Can we clone singleton class in java?
What is the final keyword denotes?
What is a static class in java?
Can list contain null in java?
Why do you canvas?