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

What are the different ways to handle exceptions?

534


How do you reverse a string in java?

570


What is an example of a constant variable?

521


What is singletonlist in java?

500


Difference between arraylist and vector.

580






What are the various access specifiers in java?

554


What is one third plus one third as a fraction?

477


What is math floor in java?

467


What is floor math?

503


What are different types of control structures?

481


Can arraylist contain null values?

556


What is thread count in java?

536


Can you use this() and super() both in a constructor?

518


Explain aggregation in java?

540


What does the “static” keyword mean? Can you override private or static method in java?

619