Here you can find the source of loadClass(String className)
public static Class loadClass(String className) throws ClassNotFoundException
//package com.java2s; //License from project: Open Source License public class Main { public static Class loadClass(String className) throws ClassNotFoundException { return loadClass(className, getContextClassLoader()); }//from w w w .j a v a 2s . c o m public static Class loadClass(String className, ClassLoader classLoader) throws ClassNotFoundException { if (className == null) { return null; } if (classLoader == null) { return Class.forName(className); } else { return Class.forName(className, true, classLoader); } } public static ClassLoader getContextClassLoader() { return Thread.currentThread().getContextClassLoader(); } }