Difference between array and arraylist.

Answer Posted / sharath

Array is collection of similar
data items.
ArrayList is a utill package its a collection.
Array can store primitive and fixed size.
ArrayList are Stores object only and resizable.

Is This Answer Correct ?    45 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you use a static class?

580


What is methods and methodology?

529


Define how does a try statement determine which catch clause should be used to handle an exception?

579


Is oracle java 11 free?

523


What is the difference between length and length () in java?

523






How many types of java are there?

555


Which collection is sorted in java?

540


what state does a thread enter when it terminates its processing? : Java thread

594


Can memory leak in java?

578


When should I use a singleton?

554


Is it necessary that each try block must be followed by a catch block?

553


How can constructor chaining be done by using the super keyword?

614


What is the method in java?

592


What is the requirement of thread in java?

614


What is the name of the java compiler?

519