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

Can a static method be final?

550


What is difference between jdk,jre and jvm?

563


If system.exit (0); is written at the end of the try block, will the finally block still execute?

613


What is replaceall in java?

542


What is a singleton in genetics?

560






What is scope & storage allocation of global and extern variables? Explain with an example

579


What is classes in java?

515


What is the difference between the direct buffer and non-direct buffer in java?

537


What is the difference between abstract classes and interfaces?

511


Explain importance of finally block in java?

582


Can we create object of static class?

526


What is bytecode in java ?

605


What are the different types of constructor?

524


What are the 5 types of research methods?

586


What is t in generics in java?

558