Here you can find the source of forName(String name)
public static Class<?> forName(String name)
//package com.java2s; //License from project: Apache License public class Main { public static Class<?> forName(String name) { return forName(name, null); }// w w w . ja v a 2s . c om public static Class<?> forName(String name, ClassLoader loader) { try { if (loader == null) { return Class.forName(name); } return Class.forName(name, true, loader); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } }