newInstance method (format 1)
Description
Directly creates the instances of the class indicated by the parameter type in the Explicit memory block indicated by the object. Only the instances of the class specified in the parameter are created in the Explicit memory block. The objects created through the initialization by the constructor of the instances of the class specified in the parameter are created in the Java heap. type is same as Class.newInstance() for this object, however some part is different.
Format
public Object newInstance(Class type);
Parameters
Exceptions
Return value
This method returns the reference to the instances created in the Explicit memory block indicated by the object.
If it is judged that processing cannot be executed by performing the common error check, invoke the Class.newInstance() method by considering the parameter type as a receiver, and return that result. For details on common error check, see 10.6 Error check (common error check) of the process that controls the Explicit memory block .
Caution
We recommend that you add a public class in the parameter type.