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
What is sortedmap in java?
Can I uninstall java?
What are the advantages of java inner classes?
Is array synchronized in java?
Is java pass by value or pass by reference?
What does string intern() method do?
What is the return type of the main method?
What is the purpose of extern variable?
Explain the difference between an object-oriented programming language and object-based programming language?
Is hashset ordered java?
What is a blocking method in Java?
Explain constructors and types of constructors in java.
Break statement can be used as labels in java?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What is the purpose of garbage collection in java?