Difference between array and arraylist.

Answer Posted / chinnu

Array:arrays is not for our requirement once we create a size next we cant change the size.in advance we cant estimate the size.its taking only homogeneous elements.


Array list:array list is same as collections and vectors.array list is or requirement we can change the size in advance also and estimate the size.its taking both homogeneous and heterogeneous elements .

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes is a url?

572


Can we store variables in local blocks?

794


What is a flag value?

524


What is object-oriented programming?

583


Difference between operator overloading and function overloading

621






what are synchronized methods and synchronized statements? : Java thread

588


What is a nested list?

528


What is preparedstatement in java?

568


Can list have duplicates in java?

535


What is temp in java?

567


What is static class

626


what is the use of bean managed and container managed with example?

1514


Explain the difference between call by refrence and call by value?

573


Is an empty arraylist null?

609


What are bind parameters?

563