Java Class Load loadClass(String name)

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

Description

load Class

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static <C> C loadClass(String name) throws Exception 

Method Source Code

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

public class Main {
    @SuppressWarnings("unchecked")
    public static <C> C loadClass(String name) throws Exception {
        return (C) ClassLoader.getSystemClassLoader().loadClass(name).newInstance();
    }/*  w  ww .  ja  va  2 s  . c om*/
}

Related

  1. loadClass(String className, ClassLoader classLoader)
  2. loadClass(String clazz, ClassLoader cl)
  3. loadClass(String fqcn, Class... classes)
  4. loadClass(String h, String prefix)
  5. loadClass(String inClassName)
  6. loadClass(String name)
  7. loadClass(String name)
  8. loadClass(String name)
  9. loadClass(String name)