Class.forName(xxx.xx.xx) 返回的是一个类, .newInstance() 后才创建一个对象 Class.forName(xxx.xx.xx);的作用是要求JVM查找并加载指定的类,也就是说JVM会执行该类的静态代码段 Class aClass = Class.forName(xxx.xx.xx); Object anInstance = aClass.newInstance(); Class.forName("").newInstance()返回的是object but there is some limit for this method to create instance that is your class constructor should no contain parameters, and you should cast the instance manually. Class Driver{ protected static Driver current; public static Driver getDriver(){ return current; } } Cl...