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
What are encapsulation, inheritance and polymorphism?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What restrictions are placed on method overriding in java programming?
What is the purpose of object oriented programming?
How are variables stored in memory?
What are instance variables?
Is it possible for yielded thread to get chance for its execution again ?
does java support pointers?
What is ascii format?
What do you mean by data type?
What Is Query Throttling in java?
what is the major difference between linkedlist and arraylist in java?
Can you override static methods?
How does a for loop work?
What is a condition in java?