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 sortedmap in java?

547


Can I uninstall java?

548


What are the advantages of java inner classes?

555


Is array synchronized in java?

548


Is java pass by value or pass by reference?

535






What does string intern() method do?

585


What is the return type of the main method?

573


What is the purpose of extern variable?

529


Explain the difference between an object-oriented programming language and object-based programming language?

545


Is hashset ordered java?

585


What is a blocking method in Java?

601


Explain constructors and types of constructors in java.

642


Break statement can be used as labels in java?

550


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

598


What is the purpose of garbage collection in java?

651