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
When is an object subject to garbage collection?
Can a final variable be null?
Define array. Tell me about 2-D array.
Can we have multiple classes in a single file?
If a method is declared as protected, where may the method be accessed in java programming?
What is a class object?
Can we override static methods in java?
What are the restrictions imposed on method overriding?
What is the locale class in java programming?
What are void pointers?
What is a literal coding?
Is sizeof a preprocessor?
What is keyset in java?
What is a treemap in java?
Explain the inheritance?