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
How many bytes is double?
Can inner class final?
What is the benefit of abstract class?
What is meant by design patterns?
What is append in java?
Why string is immutable or final in java
What are the methods of object class ?
What is assembly language?
What is threaded programming and when is it used? : Java thread
What is difference between Heap and Stack Memory?
What java is used for?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Name few java util classes introduced with java 8 ?
Which containers use a flowlayout as their default layout in java programming?
How do you sort in java?