public class ExceptionTest4 { public static void main(String[] args) { Class c = null; try { c = Class.forName("ExceptionTest2"); System.out.println("Got Class " + c.toString() ); } catch (ClassNotFoundException cnfe) { System.out.println("Class not found: " + cnfe.toString() ); } } }