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

Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

575


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

522


What is the symbol for average?

521


What is data type in computer?

521


What is difference between length and length() method in java ?

564






Is hashmap thread safe?

562


Can you extend singleton class?

603


What are the disadvantages of object oriented programming?

603


How do I start learning java?

563


Is object a data type in java?

594


What is the difference between variable declaration and variable initialization?

511


What is function overriding and overloading in java?

586


How is it possible for two string objects with identical values not to be equal under the == operator?

530


What is java thread dump, how can we get java thread dump of a program?

577


What is structure of java heap? What is perm gen space in heap?

546