Mega Code Archive

 
Categories / Java Tutorial / Reflection
 

Superclass of Object is null

public class Main {   public static void main(String[] argv) throws Exception {     Object o = new Object();     Class sup = o.getClass().getSuperclass(); // null   } }