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 is the difference between instanceof and isinstance?
What is a boolean field?
What is parameters example?
Can we create an object of private class?
What is join () in java?
When is the garbage collection used in Java?
How to make a write-only class in java?
When parseint method can be used?
What is the benefit of lambda expressions?
What is a stringbuilder?
What is deserialization?
What are the characteristics of java?
Can we declare main () method as non static?
Can a static method be final?
Explain about interrupt() method of thread class ?