Difference between array and arraylist.
Answer Posted / vinod agarwal
Array:array is the one which can save similar data typed
elements.
And the size is limited.
Arraylist:it is also a type of array in which we can extend
size
dynamically.
syntax:
ArrayList ar=new ArrayList();
where ArrayList is a class
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How do I know if java is installed?
What are the disadvantages of using inner classes?
What do you mean by flow of struts?
What does index mean in java?
What will happen if a thrown exception is not handled?
Which is the class in java?
How many decimal places is a double?
What is the static import?
What is difference between variable declaration and definition?
What is bytecode verifier?
What is finalize() function in java?
How list contains works in java?
Is arraylist ordered in java?
What does compareto () do in java?
What is the hashcode () and equals () used for?