Here you can find the source of loadClass(String className)
public static Class<?> loadClass(String className) throws ClassNotFoundException
//package com.java2s; //License from project: LGPL public class Main { public static Class<?> loadClass(String className) throws ClassNotFoundException { Class<?> result = null; if (className != null) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); result = (cl != null ? cl.loadClass(className) : null); }//from w ww . ja v a 2 s . c o m return result; } }