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
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What are wrapped classes in java programming?
What is java english?
Is boolean a data type in java?
Explain the difference between static and dynamic binding in java?
List the different types of classloaders in java.
Explain serialization and deserialization in java?
How many types of array are there?
Can list be null in java?
Is it possible to use string in the switch case?
What are the 8 data types in java?
What is meant by singleton class?
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.
What is the difference between the paint() and repaint() methods?
Explain the advantages of packages in java?