Tag: 新运算符

new运算符和Class.newInstance()有什么区别?

new运算符和Class.forName(…).newInstance()之间有什么区别Class.forName(…).newInstance() ? 它们都创建了一个类的实例,我不确定它们之间的区别。