You can with a classloader and the class name, eventually with some parameters shown in the code below
final ClassLoader classL = ...
final Class<?> aClass = classL.loadClass("java.lang.Integer");
final Constructor<?> constr= aClass.getConstructor(int.class);
final Object obj = constr.newInstance(123);
System.out.println("o = " + obj);
Hope it helps!
If you need to know more about Java, join our Java online course today.
Thanks