Someone please help to understand how we can initialize an 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 an array, it gives me an exception.
java.lang.InstantiationException
source share