Difference between array and arraylist.

Answer Posted / vinod agarwal

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use find and replace?

504


What is argument in java?

534


Define locale.

582


Give me an example of array and linked list? Where they can be used?

549


What is supplier in java?

548






What are the differences between abstract class and interface?

506


What is natural ordering in java?

519


Where are register variables stored?

586


What is the formula to calculate percentage?

526


What advantage do java's layout managers provide over traditional windowing systems?

539


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

697


Difference between string s= new string (); and string s = "abv";?

736


What is difference between local variable and global variable?

467


What is flush buffer?

512


Can list contain null in java?

620