62,614
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
a_Obj a = null;
try {
a = (a_Obj) Class.forName("com.test.b_Obj").newInstance();
System.out.println("result = " + a.c(1, 1));
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}