Explain about arraylist?



Explain about arraylist?..

Answer / Deepak Goswami

Arraylist in Java is a dynamic array-like data structure that resides inside the ArrayList class. The ArrayList class implements the List interface and extends AbstractList class. An ArrayList can store any type of data (objects), similar to an array, but its size can grow or shrink as needed.nAn ArrayList allows duplicates and null elements, maintains insertion order, and does not guarantee that the elements are stored contiguously in memory. It provides several methods for adding, removing, accessing, and sorting data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is d difference between deep cloning and shallow cloning in core java?

3 Answers   Satyam,


What is Exception handling in Java How do you handle run time errors please explain with an example

2 Answers   Mastek, TCS,


Can we cast any other type to boolean type with type casting?

1 Answers  


Which collection object is faster to retrieving the data and inserting the data into it.

2 Answers   Jamcracker, Virtusa,


What are actual parameters?

1 Answers  


Explain reverse a linked list recursive java solution?

1 Answers  


Why is multithreading important?

1 Answers  


What is casting in java programming?

1 Answers  


Write a program to reverse array in place?

1 Answers  


What is the use of callablestatement?

1 Answers  


Is boolean a wrapper class in java?

1 Answers  


What do you understand by the bean persistent property?

1 Answers  


Categories