【单选题】Provided class Tester with default constructor and method test: public int test(int p1, Integer p2) Which segment is correct?
A.
Class classType=Tester.class; Object tester=classType.newInstance(); Method addMethod=classType.getMethod("test", int.class, int.class); Object result=addMethod.invoke(tester, 100, 200);
B.
Class classType=Tester.class; Object tester=classType.newInstance(); Method addMethod=classType.getMethod("test", int.class, int.class); int result=addMethod.invoke(tester, 100, 200);
C.
Class classType=Tester.class; Object tester=classType.newInstance(); Method addMethod=classType.getMethod("test", int.class,Integer.class); Object result=addMethod.invoke(tester, 100, 200);
D.
Class classType=Tester.class; Object tester=classType.newInstance(); Method addMethod=classType.getMethod("test", int.class,Integer.class); Integer result=addMethod.invoke(tester, 100, 200);