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

Which is faster call by value or call by reference?

693


What is java literals?

759


What do you mean by ordered and sorted in collections in java?

771


What methodology can be utilized to link to a database?

695


What is difference between c++ and java ?

854


How does java pattern compile work?

727


What does flagged out mean?

768


what is deadlock? : Java thread

715


How can you set the applet size?

793


Why does java does not support multiple inheritance? Explain

720


What is a top level class in java?

720


What does sizeof return?

740


What is the parse method in java?

774


What is the difference between a factory and abstract factory pattern?

876


What are the differences between abstract class and interface?

718