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 is the difference between instanceof and isinstance?

654


What is a boolean field?

605


What is parameters example?

645


Can we create an object of private class?

637


What is join () in java?

616






When is the garbage collection used in Java?

742


How to make a write-only class in java?

683


When parseint method can be used?

624


What is the benefit of lambda expressions?

585


What is a stringbuilder?

596


What is deserialization?

675


What are the characteristics of java?

613


Can we declare main () method as non static?

607


Can a static method be final?

644


Explain about interrupt() method of thread class ?

763