Difference between array and arraylist.
Answer Posted / vk
Array is a collection of similar data types,ArrayList is not you can store any type of data types in AL.ArrayList will autometically increase 50% of the size which we allocated previously, but Array wasn't.
ArrayList al= new ArrayList();
al.add("a");
al.add(10);
both can be accepted in ArrayList.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is an immutable object?
What about features of local inner class?
What is internal iteration in java se 8?
Enlist few advantages of inheritance?
How to retrieve data from database in java using arraylist?
What is hashtable and explain features of hashtable?
What is the use of callablestatement?
Mention a package that is used for linked list class in java.
What is difference between static and final?
What is anagram of a string?
How does a for loop work?
List any five features of java?
Explain about method local inner classes or local inner classes in java?
What does a void function return?
What are the differences between c++ and java?