Class.forName


Class.forName

forName public static Class<?> forName(String className) throws ClassNotFoundException Returns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to: Class.forName(className, true, currentLoader) where currentLoader denotes the defining class loader of the current class. For example, the following code fragment returns the runtime Class descriptor for the class named java.lang.Thread: Class t = Class.forName("java.lang.Thread") ...


#첫글

원문링크 : Class.forName