Create new instance

T newInstance()
Creates a new instance of the class represented by this Class object.

public class Main {

  public static void main(String[] args) {

    
    Class c = new String().getClass();
    
    try {
      Object obj = c.newInstance();
    } catch (InstantiationException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }
    
  }
}
Home 
  Java Book 
    Reflection  

Class:
  1. Class Reflection
  2. Get Class from class name
  3. Get class name
  4. Get constructors
  5. Get fields in this class
  6. Get Modifiers
  7. Get package
  8. Check class type
  9. Create new instance
  10. Convert class to string