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
Which java version is latest?
How do I find and replace in word?
What is singletonlist in java?
What is the protected method modifier?
Is main is a keyword?
What is the purpose of void class?
Why are functions called methods in java?
What is user defined exception in Java?
What is the meaning of variables in research?
How many java versions are there?
What is numel matlab?
What is the difference between stream and buffer?
What is lambda in java?
What are java packages?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?