The method java.lang.reflect.Class.forName() is a Java reflection API that is used to dynamically load and obtain the Class object of a specified class name. This method allows the program to load classes at runtime that may not have been present during compilation. It returns the Class object for the specified name, which can then be used to create instances of the class or access its fields and methods through reflection.
Java Class.forName - 30 examples found. These are the top rated real world Java examples of java.lang.reflect.Class.forName extracted from open source projects. You can rate examples to help us improve the quality of examples.