Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

newinstance in java giving exception

Class       integerDefinition   = Class.forName("java.lang.Integer");
Constructor intArgsConstructor  = integerDefinition.getConstructor(new Class[] {int.class});
Object[]    intArgs             = new Object[] { new Integer(12) };
Object      object              = intArgsConstructor.newInstance(intArgs);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #newinstance #java #giving #exception
ADD COMMENT
Topic
Name
4+5 =