只要有无参数的构造方法,newInstance()都可以正确执行。否则会报错java.lang.InstantiationException。
Class.newInstance()注意点
猜你喜欢
转载自blog.csdn.net/jeffrey_li/article/details/80005502
今日推荐
周排行