Here you can find the source of loadClass(String name)
@SuppressWarnings("unchecked") public static <C> C loadClass(String name) throws Exception
//package com.java2s; //License from project: Open Source License public class Main { @SuppressWarnings("unchecked") public static <C> C loadClass(String name) throws Exception { return (C) ClassLoader.getSystemClassLoader().loadClass(name).newInstance(); }/* w ww . ja va 2 s . c om*/ }