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

Which java ide is used the most?

510


Can constructor be synchronized?

546


Is array passed by reference in java?

582


Where are the card layouts used?

616


Can private members of a base class are inheritable justify?

490






What is an escape character in java?

538


What is the purpose of sizeof operator?

532


What is a class object?

502


Can you extend main method in java?

629


List some important features of java 10 release?

517


How to change the priority of thread or how to set the priority of thread?

619


If two threads have same priority which thread will be executed first ?

846


What are the differences between forwarding () method and sendredirect() methods?

626


Can you declare the main method as final?

531


List primitive java types?

597