What are the similarities between an array and an Array List?
An array is indexed fixed number of homogeneous elements. :Both array and arraylist are collections of homogenous elements like int,etc. Both can store duplicate elements in an unordered way. Category:Core Java Interview Questions
No comments:
Post a Comment