Determine the Superclass of an Object : Object « Reflection « Java
- Java
- Reflection
- Object
Determine the Superclass of an Object
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
System.out.println(new ArrayList().getClass().getSuperclass().getName());
}
}
//java.util.AbstractList
Related examples in the same category