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 |
Which package is always imported by default?
How listener identify that the event came from a particular object?
Does java support multi dimensional arrays ?
What is a class object?
What is a databasemetadata?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
why applet doesn't have main? isn't possible a program with out main?
How will you compute size of a structure?
Why there are some null interface in java? What does it mean?
Which collection is best for sorting in java?
If I only change the return type, does the method become overloaded?
How transient variable is different from volatile variable?