Java Class Load loadClass(String className)

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

Description

load Class

License

LGPL

Declaration

public static Class<?> loadClass(String className) throws ClassNotFoundException 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static Class<?> loadClass(String className) throws ClassNotFoundException {
        Class<?> result = null;
        if (className != null) {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            result = (cl != null ? cl.loadClass(className) : null);
        }//from w  ww .  ja  v  a  2 s . c  o m
        return result;
    }
}

Related

  1. loadClass(final String packageName, final String className)
  2. loadClass(String className)
  3. loadClass(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)