Why ArrayList class is not a synchronized class and why it
is not a thread safe class? explain
Answer / 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 |
How many types of equations are there?
What is the difference between comparison done by equals method and == operator?
How do I type unicode?
What is difference between overloading and overriding in java?
Explain the use of sublass in a java program?
can any one send me the example program of immutable class?
what is features of jdk 1.5?
2 Answers Accenture, Satyam, TCS,
What is sortedmap in java?
What are the OOPS concepts in Java ?
What is the exception hierarchy in java?
Can we access a database using applets?
can any one tell me what is advantage of encapsulation