Here you can find the source of classForName(String name, ClassLoader classLoader)
public static Class<?> classForName(String name, ClassLoader classLoader) throws ClassNotFoundException
//package com.java2s; import java.util.Map; public class Main { private static Map<String, Class<?>> primitiveClassMap; public static Class<?> classForName(String name, ClassLoader classLoader) throws ClassNotFoundException { Class<?> c = primitiveClassMap.get(name); if (c == null) { c = Class.forName(name, false, classLoader); }// w w w . j av a 2s . co m return c; } }