Here you can find the source of loadClassOrReturnNull(ClassLoader loader, String className)
public static Class<?> loadClassOrReturnNull(ClassLoader loader, String className)
//package com.java2s; //License from project: Apache License public class Main { public static Class<?> loadClassOrReturnNull(ClassLoader loader, String className) { if (loader == null) { loader = ClassLoader.getSystemClassLoader(); }// w w w .j av a 2s .c o m try { return loader.loadClass(className); } catch (ClassNotFoundException e) { return null; } } }