What are the similarities between an array and an ArrayList?

Answer Posted / manikandan [ gtec,vellore ].

both array and arraylist can store a duplicate elements in
un ordered way.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different data types?

570


Give few difference between constructor and method?

521


What happens when a thread cannot acquire a lock on an object in java programming?

549


What is null statement?

535


How to instantiate static nested classes in java?

566






What is java oops?

558


Which sort is best in java?

529


Why pointers are not used in java?

581


What string is utf8?

547


Can you extend main method in java?

624


What is native code?

538


When is an object subject to garbage collection?

588


What is jit compiler in java?

590


How will you print number in reverse (descending) order in BST.

582


Explain wait(), notify() and notifyall() methods of object class ?

598