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 |
What is bifunction in java?
How are this and super used?
using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.
Explain the difference between serializable and externalizable in java?
Difference between method overloading and overriding.
Does java support function overloading, pointers, structures, unions or linked lists?
Can we use different return types for methods when overridden?
What is use of functional interface in java 8? Explain
Java is Pass by Value or Pass by Reference?
What is scope of a variable?
What is a dot notation?
How are java objects passed to a method and what are native methods?