Java · Hard · ProWhat are covariance and contravariance in Java generics? Why is List<Dog> not a List<Animal>?JavaCore Java