The superclass of primitive types is always null : Super Class « Reflection « Java Tutorial






public class Main {
  public static void main(String[] argv) throws Exception {

    Class cls = int.class;
    Class sup = cls.getSuperclass(); // null
  }
}








7.13.Super Class
7.13.1.Get super class of an object
7.13.2.Superclass of Object is null
7.13.3.Get all methods including the inherited method. Using the getMethods(), we can only access public methods.
7.13.4.The superclass of primitive types is always null
7.13.5.Getting the Superclass of an Object
7.13.6.Is Inheritable