[SOLVED] Instantiating a particular class constructor using reflection

Just a lil´ tip: No need for a catch () {} block w/ ClassNotFoundException if there’s already 1 w/ ReflectiveOperationException. :wink:

ReflectiveOperationException is the parent class for all reflection exceptions: :bug:

Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/ReflectiveOperationException.html

1 Like