网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序中需要对Employee的对象进行存储,请在下划线处填入正确选项。 class Employee implements______ { ……}

A.Comparable

B.Serializable

C.Cloneable

D.Datalnput


参考答案

更多 “ 下面程序中需要对Employee的对象进行存储,请在下划线处填入正确选项。 class Employee implements______ { ……}A.ComparableB.SerializableC.CloneableD.Datalnput ” 相关考题
考题 为使下列代码正常运行,应该在下划线处填入的选项是ObjectInputStream in=new_____(new FileInputStream(“employee . dat”));Employee[]newStaff=(Employee[〕)in.readObject();in .cIose();A.ReaderB.InputStreamC.ObjectInputD.ObjectInputStream

考题 下面程序中需要对 Employee 的对象进行存储,请在下划线处填入正确选项。class Employee implements ___________{…… }A)ComparableB)SerializableC)CloneableD)DataInput

考题 下面程序中需要对Employee的对象进行存储,横线处应填入的语句是( )。 classEmployee implements______ { ...}A.ComparableB.SerializableC.CloneableD.DataInput

考题 在下面附属类方法中的下划线处应填入的正确参数是( )。 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[]eB.employee.datC.PrintWriter outD.BufferedWriter

考题 下面程序中需要对Empleyee的对象进行存储,请在下画线处填入正确的选项。 class Employee implements ______ {…}A.ComparableB.SerializableC.CloneableD.DataInput

考题 在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData( ______ ) throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"I" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }A.Employee[]eB.employee.datC.PrintWriter outD.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[]eB.employee.datC.PrintWriter outD.BufferedWriter

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

考题 (对象的串行化)下面的程序需要对Employee的对象进行存储,试在下画线处填入正确的选项。class Employee implements _______{ … }A.ComparableB.SerializableC.CloneableD.DataInput