为使下列代码正常运行,应该在下划线处填入的选项是ObjectInputStream in=new_____(new FileInputStream(“employee . dat”));Employee[]newStaff=(Employee[〕)in.readObject();in .cIose();A.ReaderB.InputStreamC.ObjectInputD.ObjectInputStream

为使下列代码正常运行,应该在下划线处填入的选项是

ObjectInputStream in=

new_____(new FileInputStream(“employee . dat”));

Employee[]newStaff=(Employee[〕)in.readObject();

in .cIose();

A.Reader

B.InputStream

C.ObjectInput

D.ObjectInputStream


相关考题:

为使下列代码正常运行,应该在下划线处填入的选项是abstract class Person{public Person(String n)!name=n;}public____String getDescription();public String getName(){return name;}private String name;}A.staticB.privateC.abstractD.final

为使下列代码正常运行,应该在下画线处填入的选项是( )。 A.ReaderB.InputStreamSXB 为使下列代码正常运行,应该在下画线处填入的选项是( )。A.ReaderB.InputStreamC.ObjectInputD.ObjectInputStream

为使下列代码正常运行,应该在下画线处填入的选项是( )。 ObjectInputStream In= new (new FilelnputStream("employee. doc")); Employee[]newstaff=(Employee[])in.readObject ; In.close;A.ReaderB.InputStreamC.ObjectlnputD.ObjectlnputStream

为使下列代码正常运行,应该在下画线处填入的选项是( )。 ObjectlnputStream In= new (new FilelnputStream("employee. doc")): Employee[]newstaff=(Employee[])in.readobject ; In.close;A.ReaderB.InputStreamC.ObjectlnputD.ObjectlnputStream

为使下列代码正常运行,应该在下划线处填入的选项是()abstract class Person { private String name; public Person (String n) { name = n; } public ____________String get Description(); public String getName() { return name; } }A.privateB.abstractC.finalD.static

为使下列代码正常运行,应该在下划线处填入的选项是() abstract class Person { public Person (String n) { name = n; } public ____________String getDescription(); public String getName() { return name; } private String name; }A.privateB.abstractC.finalD.static

(对象的反序列化)为使下列代码正常运行 ,应该在下划线填入的选项是 ObjectInputStream in = new _____________(new FileInputStream("employee. dat")) ; Employee[ ] newStaff = (Employee[ ])in . readObject(); in.close() ;A.InputStreamB.ReaderC.ObjectInputD.ObjectInputStream

3、为使下列代码正常运行,应该在下划线处填入的选项是() abstract class Person { public Person (String n) { name = n; } public ____________String getDescription(); public String getName() { return name; } private String name; }A.privateB.abstractC.finalD.static

为使下列代码正常运行,应该在下划线【 】处填入的选项是 abstract class Person{ private String name; public Person(String n){ name=n; } public 【 】 String getDescription(); public String getName(){ return name; } }A.staticB.privateC.abstractD.final