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 is io stream in java?
What all access modifiers are allowed for top class ?
What is type safety in java?
What does g mean in regex?
Which browsers work with java?
How can we make a class singleton?
Can you pass functions in java?
What does java edition mean?
What is the disadvantage of java?
What is the difference between abstract class and interface1? What is an interface?
What is map java?
what r advatages of websphere? & how to deploy?
Write a program to search a number in the given list of numbers.
What is ++ a in java?
How do you clear a method in java?