public static boolean isSubTypeOf ( Class parent , String className ) { try { Class cls = Class . forName ( className ) ; return parent . isAssignableFrom ( cls ) ; } catch ( ClassNotFoundException e ) { // Exception noted and ignored. e = null ; return false ; } }
Checks if the named class exists and is loadable and is a sub - type of the specified class .