No, generics do not recognize multi-state, it is necessary to define what generics enter what class;
Polymorphism is describing the relationship between class and class, there must be some object, but did not create generic objects, but objects to limit what type of data can be passed;
In the following example, List is not a generic polymorphic polymorphism:
Confusing upward generic parameters defined: <? extends 类 >to receive this type of its subclasses, but because polymorphic parent, the object is not involved, so it is not polymorphic, for example:
import java.util.ArrayList;classPeople{}classManextendsPeople{}publicclassTest{publicstaticvoidmain(String[] args){
ArrayList<?extendsPeople> l =newArrayList<Man>();}}
Summary: Generic no polymorphism, polymorphism means that the parent class = variable subclass object, but only a generic label;