| Parameter | Description |
|---|---|
| clazz | The Java class to instantiate. |
| methodID | The ID of the constructor to invoke. |
| args | An array of arguments to pass to the constructor. |
IntPtr A local reference to the newly constructed object.
Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with <init> as the method name and void (V) as the return type.
Additional resources: Java Native Interface Specification (Oracle)
| Parameter | Description |
|---|---|
| clazz | The Java class to instantiate. |
| methodID | The ID of the constructor to invoke. |
| args | An array of arguments to pass to the constructor. |
IntPtr A local reference to the newly constructed object.
Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID with init as the method name and void (V) as the return type.
Additional resources: Java Native Interface Specification (Oracle)