Here you can find the source of classForName(final String clsName)
public static Class<?> classForName(final String clsName) throws ClassNotFoundException
//package com.java2s; //License from project: Open Source License public class Main { public static Class<?> classForName(final String clsName) throws ClassNotFoundException { if ("int".equals(clsName)) return int.class; if ("boolean".equals(clsName)) return boolean.class; return Class.forName(clsName); }// w w w .ja v a 2s . c o m }