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


Please Help Members By Posting Answers For Below Questions

How many types of design patterns are there?

757


Is array dynamic in java?

650


What is the different types of functions?

748


Name container classes in java programming?

769


Why to use nested classes in java?

756






What is local declaration?

677


What variables are stored in stack?

706


What is bytecode verifier?

679


what is a green thread? : Java thread

771


How do you write a conditional statement?

683


What is jvm? Why is java called the platform independent programming language?

750


What is the base class of all exception classes in java?

771


Which is bigger float or double?

732


What is difference between synchronize and concurrent collection in java?

727


What do you understand by weak reference?

730