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 you use find and replace?
What is argument in java?
Define locale.
Give me an example of array and linked list? Where they can be used?
What is supplier in java?
What are the differences between abstract class and interface?
What is natural ordering in java?
Where are register variables stored?
What is the formula to calculate percentage?
What advantage do java's layout managers provide over traditional windowing systems?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
Difference between string s= new string (); and string s = "abv";?
What is difference between local variable and global variable?
What is flush buffer?
Can list contain null in java?