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 the meaning of 3 dots in java?
What is abstract class? Explain
What is difference between ++ I and I ++ in java?
What is a string token?
What is thread safe in java?
What does jenkins do?
What are the advantages and disadvantages of reference counting in garbage collection?
What are the actions that can occur when a thread enters blocked state?
What is native method in java?
What is functional interface in javatpoint?
Differences between external iteration and internal iteration?
What is generics in java interview questions?
What are different types of multitasking?
What will be the default values of all the elements of an array defined as an instance variable?
If you are given the name of the function at run time how will you invoke the function?