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

Can we use a default constructor of a class even if an explicit constructor is defined?

733


How do you implement polymorphism in our day to day life?

2855


What are the methods of object class ?

655


What is intern method in java?

681


What happens when you add a double value to a string?

645






What are the restrictions imposed on method overriding?

646


What are benefits of java?

674


Write a program to print fibonacci series up to count 10.

590


Explain features of interfaces in java?

641


What is the meaning of nullable?

661


What is a parent class in java?

632


What is difference between static class and normal class?

629


What is meant by 'Class access modifiers'?

663


What is the main use of generics in java?

604


What does string intern() method do?

691