Here you can find the source of forName(String className)
@SuppressWarnings("unchecked") @Deprecated public static <T> Class<T> forName(String className) throws ClassNotFoundException
//package com.java2s; //License from project: Common Public License public class Main { private static ClassLoader classLoader; @SuppressWarnings("unchecked") @Deprecated/*from w w w. j a v a2s . c o m*/ public static <T> Class<T> forName(String className) throws ClassNotFoundException { return (Class<T>) (classLoader == null ? Class.forName(className) : Class.forName(className, true, classLoader)); } }