How to initialize List object in Java?
If you check the API for List you’ll notice it says: Being an interface means it cannot be instantiated (no new List() is possible). If you check that link, you’ll find some classes that implement List: All Known Implementing Classes: AbstractList, AbstractSequentialList, ArrayList, AttributeList, CopyOnWriteArrayList, LinkedList, RoleList, RoleUnresolvedList, Stack, Vector Some of those can be instantiated (the ones that are not defined as abstract class). Use their links to know more about them, I.E: to … Read more