Difference between array and arraylist.

Answer Posted / sitaram

Array is static,only one data type values are storing. Size
Does not grow, its fixed

ArrayList is dynamic,different data type values are storing.
By adding values, it grows

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Classloader in Java?

802


What does @param args mean in java?

780


What is the independent variable in an experiment?

726


What is the difference between an array and an array list?

693


What is illegal identifier in java?

734






What is the difference between the paint() and repaint() methods?

779


Can we change the scope of the overridden method in the subclass?

1044


What does int [] mean in java?

741


What is java reflection api?

727


Can we nested try statements in java?

824


How does split work in java?

714


how we can make a write-only class in java?

737


What is increment in java?

704


List out benefits of object oriented programming language?

651


What are the differences between throw and throws?

794