Java Class Load loadClass(String name, ClassLoader ldr)

Here you can find the source of loadClass(String name, ClassLoader ldr)

Description

load Class

License

Open Source License

Declaration

public static Class loadClass(String name, ClassLoader ldr) 

Method Source Code

//package com.java2s;

public class Main {
    public static Class loadClass(String name, ClassLoader ldr) {
        try {//w  w  w  .ja va2 s  .  c om
            return Class.forName(name, true, ldr);
        } catch (ClassNotFoundException e) {
            return null;
        }
    }
}

Related

  1. loadClass(String name)
  2. loadClass(String name)
  3. loadClass(String name)
  4. loadClass(String name)
  5. loadClass(String name, ClassLoader cl)
  6. loadClass(String name, ClassLoader loader)
  7. loadClass(String theClassName, Class theReferrer)
  8. loadClass(T instance)
  9. loadClassByName(final String className, final ClassLoader loader)