Someone please help to understand how can we initialize array in java using reflection.
for a simple object we can do like this :
Class l_dto_class = Class.forName(p_fld.getType().getName());
Object l_dto_obj= l_dto_class.newInstance();
but for the case of array it is giving me exception.
java.lang.InstantiationException
newInstance()you must have a zero args constructor and I don't thinkArraymeets that requirement...