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
Explain thread in java?
What does ide stand for?
How many inner classes can a class have?
What is a variable analysis?
Explain about fail safe iterators in java?
What is assembly condition codes?
What is equlas() and hashcode() contract in java? Where does it used?
What is a Presistent Object?
What are the java ide’s?
What is difference between an object and a class?
What is qualitative variable?
What is an empty class? What functionality does it offer in Java?
How do you sort data in java?
what is difference betweem home interface and remote interface?
What is the difference between choice and list?