- 博客(4)
- 收藏
- 关注
原创 java创建对象的5种方式
1.new 2.使用反射Class.forName(“com.cn.mybatisDemo.util.Student”).newInstance()或Student.class.newInstance(); 3.使用构造器 Constructor constructor=Student.class.getConstructor(); Student newInstance =
2017-04-26 19:04:07 180
原创 java创建对象的5种方式
1.new 2.使用反射Class.forName(“com.cn.mybatisDemo.util.Student”).newInstance()或Student.class.newInstance(); 3.使用构造器 Constructor constructor=Student.class.getConstructor(); Student newInstance =
2017-04-26 19:02:40 1377
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人