Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
flyaquarius
1 year ago

List is an interface, not a class. You can’t create an object. An interface only defines what a class must have for methods that implements this interface.

ArrayList is an implementation of List. It contains all methods defined in List (and even more).

W00dp3ckr
1 year ago

on list you usually think of linked lists. ArrayList is a list implemented by means of arrays. This has advantages if you want the nth element, and disadvantages if you really only need the list properties.