Difference between array and arraylist.

Answer Posted / ranganathkini

A java.util.ArrayList has the following characteristics over
an array:

1. Provides a resizable array implementation
2. Implements the java.util.List interface
3. Has a tuning parameter called initialCapacity which
specifies the number of elements the ArrayList can hold
before it has to be resized.

Is This Answer Correct ?    174 Yes 44 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nullpointerexception?

549


How do you convert boolean to boolean?

515


Why is the main method static?

593


Describe different states of a thread.

570


What is are packages?

575






Can you add null to a list java?

575


What string is utf8?

537


explain local datetime api in java8?

549


What is replaceall in java?

538


Can we have multiple catch block for a try block?

582


What are the drawbacks of singleton class?

521


What is runtime locatable code?

851


What are the basics of core java?

538


What are the high-level thread states in java programming?

573


How to find the index of the largest number in an arraylist java?

508