Difference between array and arraylist.

Answer Posted / priya

Simply,

Array is static ie, Size Does not grow, its fixed

ArrayList is dynamic, By adding values, it grows

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jvm? How its run?

649


What are autoboxing and unboxing? When does it occur?

528


Is assembly language a low level language?

489


What happens if we override only equals?

573


What is the right data type to represent a price in java?

560






Why collection doesn’t extend cloneable and serializable interfaces?

633


What is a protected method?

590


What do you mean by ternary operator in java?

550


What is the use of conditional statement?

556


What are the Static and Dynamic Variables? Differentiate them.

592


how to create multithreaded program? : Java thread

498


What are the concepts of 'OOPS'?

590


How can you say java is object oriented?

583


What is the concept of multithreading?

514


How do you define a variable?

525