List<Lists> listOfLists = db.getAllLists();
db.getAllLists() returns a List object.
Am I making use of Polymorphism without knowing here?
List<Lists> listOfLists = db.getAllLists();
db.getAllLists() returns a List object.
Am I making use of Polymorphism without knowing here?
 
    
    Yes, because you don't know (and really don't need to care about) which implementation of List interface is returned by db.getAllLists().
More info:
 
    
    