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

If an application has multiple classes in it, is it okay to have a main method in more than one class?

636


What are wrapped classes in java programming?

683


What is java english?

580


Is boolean a data type in java?

620


Explain the difference between static and dynamic binding in java?

648






List the different types of classloaders in java.

609


Explain serialization and deserialization in java?

658


How many types of array are there?

628


Can list be null in java?

662


Is it possible to use string in the switch case?

629


What are the 8 data types in java?

612


What is meant by singleton class?

684


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1648


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

680


Explain the advantages of packages in java?

607