boolean is_subclass = Superclass.class.isAssignableFrom(Subclass.class); // example: // List.class.isAssignableFrom(LinkedList.class) is true // List.class.isAssignableFrom(HashMap.class) is false