更多“()is the boy who feels that Christmas doesn't work out for him.A、BillyB、JohnC、the h ”相关问题
  • 第1题:

    Who’ll meet Mr. Lee tomorrow afternoon ()

    A.Bob

    B.John

    C.Linda


    参考答案:A

  • 第2题:

    GiventhatastaticmethoddoIt()inaclassWorkrepresentsworktobedone,whatblockofcodewillsucceedinstartinganewthreadthatwilldothework?

    CODEBLOCKa:

    Runnabler=newRunnable(){

    publicvoidrun(){

    Work.doIt();

    }

    };

    Threadt=newThread(r);

    t.start();

    CODEBLOCKb:

    Threadt=newThread(){

    publicvoidstart(){

    Work.doIt();}};

    t.start();

    CODEBLOCKc:

    Runnabler=newRunnable(){

    publicvoidrun(){

    Work.doIt();

    }

    };

    r.start();

    CODEBLOCKd:

    Threadt=newThread(newWork());

    t.start();

    CODEBLOCKe:

    Runnablet=newRunnable(){

    publicvoidrun(){

    Work.doIt();

    }

    };

    t.run();


    参考答案:A

  • 第3题:

    本题分别比较两个字符串"A"和"a"是否相等,并比较两个字符"A"和"a"是否相等,并输出比较结果。

    public class javal{

    public static void main(String[]args){

    cl=‘A ‘;c2=‘a‘;

    String strl=new String("A"),str2=new String

    ("a"):

    if( )

    System.Out.println("char"+c1+"equals"+"char"

    +c2);

    else

    System.OUt.println("char"+cl+"doesn‘t equal

    "+"char"+c2);

    if( )

    System.out.println("string"+strl+"equals"+

    "string"+str2):

    else

    System.OUt.println("string"+strl+"doesn‘t e-

    qual"+"string"+str2); .

    }

    }


    正确答案:
    第1处:charcl,c2第2处:cl==c2第3处:strl.equals(str2)【解析】第1处声明两个字符型变量cl和c2;第2处表示当cl等于c2时if条件为真;第3处判断strl和str2是否相等,返回值是布尔类型true或false。

  • 第4题:

    She likes playing the violin , but he()

    A.is not

    B.don't

    C.doesn't


    参考答案:C

  • 第5题:

    Youissuedthefollowingcommand:CREATEGLOBALTEMPORARYTABLEadmin_work_area (startdateDATE,enddateDATE,classCHAR(20))ONCOMMITDELETEROWSTABLESPACEtbs_t1;AnindexisthencreatedontheADMIN_WORK_AREAtemporarytable.WhichtwostatementsaretrueregardingtheTBS_T1tablespaceintheabovecommand?()

    A.Itstoresonlythetemporarytablebutnotitsindexes.

    B.Itstoresboththetemporarytableaswellasitsindexes.

    C.Itmustbeanondefaulttemporarytablespaceforthedatabase.

    D.Itcanbeadefaultornondefaulttemporarytablespaceforthedatabase.

    E.Itmustbethedefaulttemporarytablespaceoftheuserwhoissuesthecommand.


    参考答案:B, D