What are the similarities between an array and an ArrayList?

Answer Posted / harikrishna

An array is indexed fixed number of homogeneous elements.
where as in ArrayList you can create any number of objects
with any type.

Is This Answer Correct ?    4 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between throw and throws keywords?

576


What is the same as procedures?

536


What are the methods to rectify ambiguities in the interfaces in JAVA?

596


Can a constructor be protected?

533


What is difference between throw and throws ?

601






What is the major advantage of external iteration over internal iteration?

614


What all access modifiers are allowed for top class ?

713


Explain about object oriented programming and its features?

599


How to convert string to byte array and vice versa?

587


What is the difference between interface & abstract class?

559


How will you add panel to a frame?

648


Which data type is class in java?

551


What does it mean to flush a file?

572


What is an class?

593


What is the use of list in java?

524