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
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is data and its types?
What are some characteristics of interference class?
What are the main concepts of oops in java?
What do you mean Abstraction in java?
What are the two ways in which thread can be created?
What is the difference between numeric and integer?
What are the string methods in java?
Explain the pointers in Java?
What is a percentage sign called?
What is meant by stack and queue?
Can an integer be a string?
What is constructor in java ?
What is return code?
Difference between character constant and string constant in java ?