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
How do you declare an array in java?
How do you create a method in java?
What is join () in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
How many types of methods are there in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
how to write a program for sending mails between client and server
What are the restriction imposed on a static method or a static block of code?
What does java edition mean?
What is files manifesting?
What is variable and example?
What does ide stand for?
Why is it called boolean?
Is it possible to override the main method?
What is the symbol for line break?