Java Class Load loadClass(String className)

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

Description

load Class

License

Open Source License

Declaration

private static Class<?> loadClass(String className) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static Class<?> loadClass(String className) {
        try {/*  ww  w . j a  va 2s. c  o  m*/
            return Class.forName(className);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException("Unexpected ClassNotFoundException loading class '" + className + "'");
        } catch (NoClassDefFoundError e) {
            return null;
        }
    }
}

Related

  1. loadClass(final String fqcn)
  2. loadClass(final String lclass)
  3. loadClass(final String packageName, final String className)
  4. loadClass(String className)
  5. loadClass(String className)
  6. loadClass(String className)
  7. loadClass(String className)
  8. loadClass(String className)
  9. loadClass(String className)