Here you can find the source of loadClass(String name)
public static Class loadClass(String name) throws ClassNotFoundException
//package com.java2s; //License from project: Open Source License public class Main { private static boolean useDirectClassLoading = false; /** Thanks to Max Andersen at JBOSS and Scott Stanchfield */ public static Class loadClass(String name) throws ClassNotFoundException { try {/* ww w .ja v a 2s . com*/ ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); if (!useDirectClassLoading && contextClassLoader != null) { return contextClassLoader.loadClass(name); } return Class.forName(name); } catch (Exception e) { return Class.forName(name); } } }