Here you can find the source of forName(String className, ClassLoader classLoader)
public static Class<?> forName(String className, ClassLoader classLoader) throws ClassNotFoundException
//package com.java2s; public class Main { public static Class<?> forName(String className, ClassLoader classLoader) throws ClassNotFoundException { if (classLoader == null) { return Class.forName(className); }//from ww w . ja v a 2s. com return classLoader.loadClass(className); } }