Is it possible to make an array volatile in java?



Is it possible to make an array volatile in java?..

Answer / Sangeeta Maurya

In Java, there's no concept of a 'volatile' array. However, you can use the 'volatile' keyword for variables to ensure that the variable is always synchronized with main memory and not cached by the processor.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

How will you reverse Linked List.

1 Answers  


Is learning data structures necessary?

1 Answers  


What is an expression tree?

1 Answers  


In which data structure, elements can be added or removed at either end, but not in the middle?

42 Answers   Infosys, NIC, TTA, Wipro,


What do you mean by breadth first search (bfs)?

1 Answers  


What is a hash in programming?

1 Answers  


What does abstract data type means?

23 Answers   College School Exams Tests, Infosys, SBIT, TCS,


Does treeset allow duplicates?

1 Answers  


What is return map?

1 Answers  


Can hashmap have duplicate keys?

1 Answers  


Can we null keys in treemap?

1 Answers  


What is copyonwritearraylist?

1 Answers  


Categories