Difference between array and arraylist.
Answer Posted / pooja
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 ? | 23 Yes | 10 No |
Post New Answer View All Answers
What are the different ways to handle exceptions?
How do you reverse a string in java?
What is an example of a constant variable?
What is singletonlist in java?
Difference between arraylist and vector.
What are the various access specifiers in java?
What is one third plus one third as a fraction?
What is math floor in java?
What is floor math?
What are different types of control structures?
Can arraylist contain null values?
What is thread count in java?
Can you use this() and super() both in a constructor?
Explain aggregation in java?
What does the “static” keyword mean? Can you override private or static method in java?