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