Answers for "how to get all super class of a java class"

0

how to get all super class of a java class

Class C = getClass();
while (C != null) {
  System.out.println(C.getName());
  C = C.getSuperclass();
}
Posted by: Guest on March-08-2021

Code answers related to "how to get all super class of a java class"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language