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
Does constructor return any value?
How an object is serialized in java?
Write a code to create a trigger to call a stored procedure
Explain the meaning of java applet.
What are serialization and deserialization?
What is the range of a character variable?
What is class forname used for?
Can we use string in switch case in java?
Can we execute java program without main method?
How to run a JAR file through command prompt?
Explain about class in java?
What is Garbage Collection in Java
Why main method is static in java?
Why do we use regex?
What are streams?