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
Explain the difference between a Thread and a Process.
What is the difference between sop and work instruction?
What kind of variables can a class consist?
What are white spaces in java?
Is 0 an even number?
what is difference betweem home interface and remote interface?
Explain all java features with real time examples
Can we convert integer to string in java?
Can inner class be public in java?
Is there a case when finally will not execute?
Why is string builder not thread safe?
How is tree Mirroring implemented?
What is native method in java?
What are the main uses of this keyword?
Explain hashset and its features?