create Instance
Create an instance of Class with the given arguments.
Note: If you give a null argument, it will be treated as an any type value for the constructor parameter, but if all arguments are null, it will throw an IllegalStateException.
Receiver
the Class to be instantiated.
Return
Parameters
args
the arguments to be passed to the constructor.
is Public
whether to only consider public constructors, default is true.
See also
Throws
if no suitable constructor is found.
if all arguments are null.
Create an instance of KClass.java with the given arguments.