Here you can find the source of classForName(final String theClassName)
Parameter | Description |
---|---|
ClassNotFoundException | an exception |
public static Class<?> classForName(final String theClassName) throws ClassNotFoundException
//package com.java2s; //License from project: Apache License public class Main { /** Returns the class for a name. * @throws ClassNotFoundException */ public static Class<?> classForName(final String theClassName) throws ClassNotFoundException { // TODO Use ClassNameConverter instead return Class.forName(theClassName); }/*from w w w.j ava2s. c o m*/ }