List is just an interface. So you can not instantiate a List . You have to use classes that implements List interface .
Can you make a list of classes in Java?
List is just an interface. So you can not instantiate a List . You have to use classes that implements List interface .