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 differences between heap and stack memory in java? Explain

527


What is remote method invocation (rmi)?

607


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

608


Can we create object of inner class in java?

493


How to do encapsulation in java?

568






Difference between method overloading and overriding.

575


What is passing parameters in java?

509


How is tree Mirroring implemented?

627


What is the final variable?

574


How do you represent a space in regex java?

513


Is set ordered in java?

568


What is the difference between a scrollbar and a scrollpane?

552


How many arguments can a method have java?

540


What is one third plus one third as a fraction?

481


Define inheritance with reference to java.

579