Difference between array and arraylist.

Answer Posted / sitaram

Array is static,only one data type values are storing. Size
Does not grow, its fixed

ArrayList is dynamic,different data type values are storing.
By adding values, it grows

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the algorithm to check the number non-leaf nodes in a tree.

583


Explain the importance of throws keyword in java?

561


What is method overriding in java ?

650


Does unicode support all languages?

511


What are synchronized methods ?

608






What is the instance of an object?

544


List the different types of classloaders in java.

498


Can we sort set in java?

531


What are the six ways to use this keyword?

602


what are the states associated in the thread? : Java thread

584


How to perform merge sort in java?

579


What is the method to declare member of a class static?

532


Can list be final in java?

485


What is the difference between a scrollbar and a scrollpane?

550


Why are there no global variables in java?

575