Difference between array and arraylist.

Answer Posted / nagarjunareddy.sannapareddy

array is a collection of similar type of data and the
capacity of array is fixed and it define with in system name
pace
array list it hold different type of data and the capacity
of hairstylist is increase dynamically it define withe in
system.collections name space

Is This Answer Correct ?    29 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is core java used?

562


Why main method is static in java?

581


What is number data type in java?

540


Are primitives objects?

548


What state is a thread in when it is executing?

514






What are the steps involved to create a bean?

673


Does A Class Inherit The Constructors Of Its Superclass?

528


what are different ways in which a thread can enter the waiting state? : Java thread

479


Explain about automatic type conversion in java?

552


What is string length in java?

475


What do you understand by an io stream?

569


Difference between process and thread?

590


What is string args [] in java?

528


How will you get the platform dependent values like line separator, path separator, etc., ?

571


Which collection is thread safe in java?

496