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

What is the need of transient variables in Java ?

576


What is constructor chaining in java?

584


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

705


Can we assign null to double in java?

545


Is java 11 paid version?

512






What are identifiers in java?

571


Can we overload the constructors?

556


What is application tier?

527


Explain exception chaining in java?

606


What is integers and example?

487


Can we restart a dead thread in java?

552


How does arraylist size increase in java?

529


What is sortedmap interface?

552


What is meant by singleton class?

599


Can private method static?

472