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 java reflection api?

554


In which language java is written?

537


What about instanceof operator in java?

594


How big is a 64 bit float?

534


How do you add an element to a set in java?

497






What is the difference between variable declaration and variable initialization?

502


What is the flag in java?

608


What is a lightweight component?

592


What are the differences between Java 1.0 and Java 2.0?

1677


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

654


Difference between start() and run() method of thread class?

586


What Is Query Throttling in java?

562


Can a static method be final?

550


Is there any tag in htm to upload and download files?

604


What are the four corner stones of oop?

542