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
Is overriding possible in java?
Explain about class in java?
Can we call the run() method instead of start()?
What is the differences between c++ and java? Explain
What is append function?
Is 0 an irrational number?
What is the requirement of thread in java?
Why does java have two ways to create child threads? Which way is better?
Explain the term virtual machine?
Difference between a process and a program?
How do you test a method for an exception using junit?
Which java version is latest?
why java uses class level type casting ?
What is function and method in java?
Explain different ways of creating a thread?