Java面试常见问题

1、建立对象的4中方法:java 一、new 关键字直接建立:web Student s=new Student(); 二、class的反射调用(使用class的newInstanse方法能够调用无参构造器建立对象):sql class.forName(); 三、使用clone()来建立:数据库 try{ Student stu3 = (Student) stu1.clo
相关文章
相关标签/搜索