I notice that in the Java Reflection API there are two different methods for invoking constructors: the getDeclaredConstructors
/getConstructors
method.
The method 'getDeclaredConstructors' returns only the Constructors that are declared inside the class. The method 'getConstructors' also returns constructors that are not declared inside the class but are inherited from super classes.
So it depends what you're going to do. There is no right approach, it really depends if you also need super constructors.