摘要: 通过反射创建新的类示例,有两种方式: Class.newInstance() Constructor.newInstance() 以下对两种调用方式给以比较说明: Class.newInstance() 只能够调用无参的构造函数,即默认的构造函数; Constructor.newInstance() 阅读全文
posted @ 2018-04-06 14:21 美好的明天 阅读(5435) 评论(0) 推荐(2)