does all java object have a superclass 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();
}