Verify that Super class of Object is null in Java
Description
The following code shows how to verify that Super class of Object is null.
Example
/*from www. j a va 2 s. c o m*/
public class Main {
public static void main(String[] argv) throws Exception {
Object o = new Object();
Class sup = o.getClass().getSuperclass(); // null
}
}