为使下列代码正常运行,应该在下划线处填入的选项是 ObjectInputStream in= new_____(new FileInputStream(“employee . dat”)); Employee[]newStaff=(Employee[〕) in.readObject(); in .cIose();
为使下列代码正常运行,应该在下划线处填入的选项是 ObjectInputStream in= new_____(new FileInputStream(“employee . dat”)); Employee[]newStaff=(Employee[〕) in.readObject(); in .cIose();
有如下类的定义,创建Employee对象正确的是() public class Employee{ private int age; private String name; public void Employee(){ } public Employee(int age){ this.age = age; } public Employee(String name){ this.name = name; } } A: Employee e = new Employee( ) B: Employee e = new Employee(10); C: Employee e = new Employee(tom); D: Employee e = new Employee(10,"tom");
有如下类的定义,创建Employee对象正确的是() public class Employee{ private int age; private String name; public void Employee(){ } public Employee(int age){ this.age = age; } public Employee(String name){ this.name = name; } } A: Employee e = new Employee( ) B: Employee e = new Employee(10); C: Employee e = new Employee(tom); D: Employee e = new Employee(10,"tom");
阅读以下程序,说明Company类和Employee类是 关系。public class Company{ private Employee employee; public Employee getEmployee(){ return employee; } public void setEmployee(Employee employee){ this.employee=employee; } //公司运作 public void run(){ employee.startWorking(); } }
阅读以下程序,说明Company类和Employee类是 关系。public class Company{ private Employee employee; public Employee getEmployee(){ return employee; } public void setEmployee(Employee employee){ this.employee=employee; } //公司运作 public void run(){ employee.startWorking(); } }
有如下类的定义,创建Employee对象错误的是() public class Employee{ private int age; private String name; public Employee(int age){ this.age = age; } public Employee(String name){ this.name = name; } public Employee(int age,String name){ this(age); this.name = name; } } A: Employee emp = new Employee(10); B: Employee emp = new Employee("Tom"); C: Employee emp = new Employee(); D: Employee emp = new Employee(10,"Tom");
有如下类的定义,创建Employee对象错误的是() public class Employee{ private int age; private String name; public Employee(int age){ this.age = age; } public Employee(String name){ this.name = name; } public Employee(int age,String name){ this(age); this.name = name; } } A: Employee emp = new Employee(10); B: Employee emp = new Employee("Tom"); C: Employee emp = new Employee(); D: Employee emp = new Employee(10,"Tom");
在下面附属类方法中的下划线处应填入的正确参数是______。 public void writeData throws IOException { Gregoriancalendar calendar=new Gregoriancalendar(); calendar setTime(hireDay); out.println(name+"|" +salary+"|" +calendar.get(calendar.YEAR)+"|" +(calendar.get(Calendar MONTH)+1)"|" +calendar.get(Calendar.DAY_OF_MONTH)); } A: Employee[]e B: "employee.dat" C: PrintWriter out D: BufferedWriter
在下面附属类方法中的下划线处应填入的正确参数是______。 public void writeData throws IOException { Gregoriancalendar calendar=new Gregoriancalendar(); calendar setTime(hireDay); out.println(name+"|" +salary+"|" +calendar.get(calendar.YEAR)+"|" +(calendar.get(Calendar MONTH)+1)"|" +calendar.get(Calendar.DAY_OF_MONTH)); } A: Employee[]e B: "employee.dat" C: PrintWriter out D: BufferedWriter
在下面附属类方法中的下划线处应填入的正确参数是[u] [/u]。public void writeData(_______________) throws IOException{ GregorianCalendar calendar = new GregorianCalendar( ); calendar.setTime(hireDay); out.println(name + “|” + salary + “|” + calendar.get(Calendar.YEAR) + “|” + (calendar.get(Calendar.MONTH) + 1) “|” + calendar.get(Calendar.DAY_OF_MONTH));} A: Employee[ ] e B: “employee.dat” C: PrintWriter out D: BufferedWriter
在下面附属类方法中的下划线处应填入的正确参数是[u] [/u]。public void writeData(_______________) throws IOException{ GregorianCalendar calendar = new GregorianCalendar( ); calendar.setTime(hireDay); out.println(name + “|” + salary + “|” + calendar.get(Calendar.YEAR) + “|” + (calendar.get(Calendar.MONTH) + 1) “|” + calendar.get(Calendar.DAY_OF_MONTH));} A: Employee[ ] e B: “employee.dat” C: PrintWriter out D: BufferedWriter
class Employee; class Manager extends Employee; class Director extends Employee;
class Employee; class Manager extends Employee; class Director extends Employee;
They are Mr. Jackson's ______. A: employees B: employee C: a employee D: an employee
They are Mr. Jackson's ______. A: employees B: employee C: a employee D: an employee
删除D盘根目录中所有DAT文件的命令是_____。 A: Kill "*.DAT" B: Kill "D:\*.DAT" C: Kill " D:\?.DAT" D: Kill D:\*.DAT
删除D盘根目录中所有DAT文件的命令是_____。 A: Kill "*.DAT" B: Kill "D:\*.DAT" C: Kill " D:\?.DAT" D: Kill D:\*.DAT
Ahigh-highleaderintheOhioStatestudiesachievedthehighestratingswithrespectto________. A: both employee performance and satisfaction B: employee performance only C: employee satisfaction only D: employee performance for routine tasks only
Ahigh-highleaderintheOhioStatestudiesachievedthehighestratingswithrespectto________. A: both employee performance and satisfaction B: employee performance only C: employee satisfaction only D: employee performance for routine tasks only