Java Class Load classForName(String className)

Here you can find the source of classForName(String className)

Description

Method classForName

License

Open Source License

Parameter

Parameter Description
className a parameter

Return

Returns the Class for the given name, or null

Declaration

private static Class<?> classForName(String className) 

Method Source Code

//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;
        }
    }
}

Related

  1. classForName(String className)
  2. classForName(String className)
  3. classForName(String className)
  4. classForName(String className)
  5. classForName(String className)
  6. classForName(String className)
  7. classForName(String className)
  8. classForName(String className)
  9. ClassForName(String className)