it’s taken as Object by JDK.
so for
Rates(String[] args){};
to create new instance of the object using Reflection;
Class.forName("Rates").getConstructor(String[].class).newInstance((Object)new String[]{})
it’s taken as Object by JDK.
so for
Rates(String[] args){};
to create new instance of the object using Reflection;
Class.forName("Rates").getConstructor(String[].class).newInstance((Object)new String[]{})
One thought on “Just a reminder: Java Reflection for arrays parameter”