Why ArrayList class is not a synchronized class and why it
is not a thread safe class? explain
Answer Posted / atre sachin
If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more elements, or explicitly resizes the backing array; merely setting the value of an element is not a structural modification.)
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does the “static” keyword mean?
Difference between association, composition and aggregation?
What is one third plus one third as a fraction?
Can a variable be local and static at the same time?
What is the integer of 16?
What are the different collection views provided by maps?
Is null a string in java?
What is string value?
What are the advantages of java over C++?
What is implicit object in java?
Can we declare a class as abstract without having any abstract method?
What is mvc in java?
What is hotjava?
What is yield () in java?
What is the main difference between java platform and other platforms?