Here you can find the source of classForName(String name)
Parameter | Description |
---|---|
name | a parameter |
public static Class classForName(String name) throws ClassNotFoundException
//package com.java2s; public class Main { /**//w ww. j a v a2 s . com * Gets the class for the given name * * @param name * @return Class reflected class */ public static Class classForName(String name) throws ClassNotFoundException { Class rs = Class.forName(name); // Class rs = BshClassManager.classForName(name); // if (rs == null) { // throw new ClassNotFoundException(name); // } return rs; } }