Here you can find the source of classForName(String className)
Parameter | Description |
---|---|
className | a parameter |
private static Class<?> classForName(String className)
//package com.java2s; public class Main { /**/*from ww w.java2s. c om*/ * Method classForName * * @param className * * @return Returns the Class for the given name, or null */ private static Class<?> classForName(String className) { try { return Class.forName(className); } catch (ClassNotFoundException e) { return null; } } }