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 meant by 'Class access modifiers'?
What are the methods available in a class?
What is the reflection?
Explain reverse a linked list recursive java solution?
How do you sort a set in java?
List the features of java programming language.
Why java applets are more useful for intranets as compared to internet?
Can a static member function access member variable of an object?
Does set allows null in java?
When should a function throw an exception?
How use .contains in java?
Difference between serialization and deserialization in java?
What is the mapping mechanism used by java to identify IDL language?
What is the difference between delete and delete[]
Tell us something about different types of casting?