Java Class Load classForName(String typeName)

Here you can find the source of classForName(String typeName)

Description

class For Name

License

Apache License

Declaration

public static Class<?> classForName(String typeName) 

Method Source Code

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

public class Main {
    public static Class<?> classForName(String typeName) {
        try {// www .  j  av  a 2s. co  m
            return Class.forName(typeName);
        } catch (ClassNotFoundException e) {
            return null;
        }
    }
}

Related

  1. classForName(String name)
  2. classForName(String name)
  3. classForName(String name)
  4. classForName(String name, ClassLoader classLoader)
  5. classForName(String str)
  6. classForName(String typeName)
  7. classForNameNoThrow(String className)
  8. classForNameOrNull(final String className)
  9. classForNameOrPrimitive(String name, ClassLoader loader)