Java Class forName forName(String className)

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

Description

for Name

License

Common Public License

Declaration

@SuppressWarnings("unchecked")
    @Deprecated
    public static <T> Class<T> forName(String className) throws ClassNotFoundException 

Method Source Code

//package com.java2s;
//License from project: Common Public License 

public class Main {
    private static ClassLoader classLoader;

    @SuppressWarnings("unchecked")
    @Deprecated/*from   w  w w.  j  a v a2s . c  o  m*/
    public static <T> Class<T> forName(String className) throws ClassNotFoundException {
        return (Class<T>) (classLoader == null ? Class.forName(className)
                : Class.forName(className, true, classLoader));
    }
}

Related

  1. forName(Class classType, String className)
  2. forName(final Class caller, final String className)
  3. forName(final String className)
  4. forName(final String className, final Class caller)
  5. forName(String className)
  6. forName(String className)
  7. forName(String className)
  8. forName(String className)