Here you can find the source of classForName(String typeName)
public static Class<?> classForName(String typeName)
//package com.java2s; //License from project: Apache License public class Main { public static Class<?> classForName(String typeName) { try {// www . j av a 2s. co m return Class.forName(typeName); } catch (ClassNotFoundException e) { return null; } } }