在下面附属类方法中的下划线处应填入的正确参数是 public void writeData(______)throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MQNTH)+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.MQNTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }
A.Employee[]e
B.employee.dat
C.PrintWriter out
D.BufferedWriter
相关考题:
在下面的类定义中,横线处应填入的内容是 class Fred { public: void print(){cout<<data<<endl;} void setData(double d)(data=d;} static int count; private: double data; }; count=0; //静态数据成员的定义A.intB.static intC.int Fred::D.static int Fred::
下面程序中需要对 Employee 的对象进行存储,请在下划线处填入正确选项。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)+"|" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }A.Employee[]eB.employee.datC.PrintWriter outD.BufferedWriter
在下面程序中,括号里应填()。 include using namespace std; class A { public: void 在下面程序中,括号里应填( )。 #include <iostream> using namespace std; class A { public: void fun( ) { cout << "Hello" << endl; } }; class B:: public A { void fun( ) { ( ) //调用基类的函数fun( ) tout << "HI" << endl; } };A.fun()B.A. fun()C.A::fun()D.A-fun(
在下面附属类方法中的下划线处应填入的正确参数是( )。 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
3在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData(______)throws IOException { GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"T" +salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MONTH)+1)+ "|" +calandar.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
25、在堆栈类StackTest的定义中,为了保证堆栈在并发操作中数据的正确性,应在下划线处填入的代码自上而下分别是________。 public class StackTest{ private int idx = 0; private char[] data = new char[10]; public _____ void push(char c) {……} public______ void pop() {……} }A.不用填写,synchronizedB.都不用填写C.synchronized,synchronizedD.synchronized, 不用填写
在堆栈类StackTest的定义中,为了保证堆栈在并发操作中数据的正确性,应在下划线处填入的代码自上而下分别是________。 public class StackTest{ private int idx = 0; private char[] data = new char[10]; public _____ void push(char c) {……} public______ void pop() {……} }A.不用填写,synchronizedB.都不用填写C.synchronized,synchronizedD.synchronized, 不用填写