What is the difference between Array and Arraylist?



What is the difference between Array and Arraylist?..

Answer / Sandhya Pal

In Java, an array is a fixed-size data structure while ArrayList is a dynamic array that can resize itself as elements are added or removed. Arrays have a fixed size and cannot be changed once created, whereas ArrayLists can.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

If you are using c language to implement the heterogeneous linked list, what pointer type should be used?

1 Answers  


Which interfaces are implemented by concurrentskiplistset?

1 Answers  


Which data structure is used to perform recursion?

1 Answers  


Define threaded binary tree. Explain its common uses

1 Answers  


For searches. Which one is most preferred: array list or linked list?

1 Answers  


Is quicksort a stable algorithm?

1 Answers  


Is heap sort adaptive?

1 Answers  


What is the relationship between a queue and its underlying array?

1 Answers  


Does concat mutate array?

1 Answers  


What is dynamic data structure?

2 Answers  


Explain about the different lists available in the collection?

1 Answers  


What is the difference between arraylist and linkedlist?

1 Answers  


Categories