which is the super class of all classes in java code example
Example: how to get all super class of a java class
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}
Class C = getClass();
while (C != null) {
System.out.println(C.getName());
C = C.getSuperclass();
}