ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is difference between array & arraylist?

An ArrayList is resizable, where as, an array is not. ArrayList is a part of the Collection Framework. We can store any type of objects, and we can deal with only objects. It is growable. Array is collection of similar data items. We can have array of primitives or objects. It is of fixed size. We can have multi dimensional arrays.

Array:  can store primitive            ArrayList: Stores object only

Array:  fix size                              ArrayList: resizable

Array:  can have multi dimensional

Array:   lang                                ArrayList:  Collection framework
Related Posts Plugin for WordPress, Blogger...
Flag Counter