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 a stringbuffer?
What is the difference between a method and a function in alice?
What is scanner in java?
What is the inheritance?
What is meant by stack and queue?
What are the basic interfaces of java collections framework?
Which number is denoted by leading 0x or 0x in java?
Can constructor be protected in java?
What will be the initial value of an object reference which is defined as an instance variable?
Why does java does not support multiple inheritance? Explain
What is t in parametric equations?
What is the final keyword?
When parseint method can be used?
How do you sort words in java?
Can static method access instance variables ?