Is it possible to make an array volatile?
Answer / 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 |
What is unsigned char?
What are the data types supported by java? What is autoboxing and unboxing?
What is the function of http?
Why does java have two ways to create child threads? Which way is better?
What are the differences between the constructors and methods?
What does pointer mean?
Explain the concept of polymorphism with examples?
What are the performance implications of interfaces over abstract classes?
Can we convert integer to string in java?
What is a singleton factory?
What are some alternatives to inheritance?
what is the difference between @include page and @include file