niusouti.com

单选题Which method in the Thread class is used to create and launch a new thread of execution?()A  Run();B  Start();C  Execute();D  Run(Runnable r);E  Start(Runnable r);F  Execute(Thread t);

题目
单选题
Which method in the Thread class is used to create and launch a new thread of execution?()
A

 Run();

B

 Start();

C

 Execute();

D

 Run(Runnable r);

E

 Start(Runnable r);

F

 Execute(Thread t);


相似考题
参考答案和解析
正确答案: A
解析: 暂无解析
更多“单选题Which method in the Thread class is used to create and launch a new thread of execution?()A ensp;Run();B ensp;Start();C ensp;Execute();D ensp;Run(Runnableensp;r);E ensp;Start(Runnableensp;r);F ensp;Execute(Threadensp;t);”相关问题
  • 第1题:

    Yourcompanyhasofficesinseveralcountries.You&ensp

    Yourcompanyhasofficesinseveralcountries.Youmusttestandvalidatealloperatingsystemimagesbeforeyoudeploythem.

    YoucreateaWindows7Enterprisemasterimagethathasalllanguagepacksinstalled.Youtestandvalidatethemasterimage.

    Youareplanningtocreateregionalimagesbasedonthemasterimage.

    Eachregionalimagewillcontainonlythelanguagepackthatisnecessaryforaspecificgeographicregion.

    Youhavethefollowingrequirements:

    Removethelanguagepacksthatareunnecessaryforeachregion.Minimizethenecessarytestingandvalidation.

    Youneedtocreatetheregionalimages.

    Whatshouldyoudo?()


    参考答案:B

  • 第2题:

    YouwanttoconnectyourWindows2000Professional&ensp

    YouwanttoconnectyourWindows2000Professionalcomputertoanewcolorlaserprinter.Theprinterisplugandplaycompliant.Theprinterisincludedonthecurrenthardwarecompatibilitylist(HCL).YouareamemberoftheSalesorganizationalunit.YouwanttosharetheprinterwithotherusersintheSalesorganizationalunit.YouplugtheprinterintotheLPTportonthebackofthecomputer.Youthenattempttoinstallthe32-bitapplicationprintersoftwarethatcamewiththeprinter.Duringtheinstallationyoureceiveanerrormessageasshownintheexhibit.

    WhatshouldyoudobeforeyousharetheprintertootherusersintheSalesOU?()


    参考答案:D

  • 第3题:

    Thisitemcontainsseveralquestionsthatyoumust&ensp

    Thisitemcontainsseveralquestionsthatyoumustanswer.YoucanviewthesequestionsbyclickingontheQuestionsbuttontotheleft.Changingquestionscanbeaccomplishedbyclickingthenumberstotheleftofeachquestion.Inordertocompletethequestions,youwillneedtorefertotheSDMandthetopology,neitherofwhichiscurrentlyvisible.TogainaccesstoeitherthetopologyortheSDKclickonthebuttontoleftsideofthescreenthatcorrespondstothesectionyouwishtoaccess.WhenyouhavefinishedviewingthetopologytheSDKyoucanreturntoyourquestionsbyclickingontheQuestionsbuttontotheleft.

    WhichIPSecruleisusedfortheOlympiabranchandwhatdoesitdefine?()


    参考答案:B, E

  • 第4题:

    转专业后,学籍有效期从()开始计算。

    • A、转专业后学习开始的时间 
    • B、提出转专业申请的时间  
    • C、转专业批准的时间
    • D、入学注册时

    正确答案:D

  • 第5题:

    LACP符合以下哪个协议标准()

    • A、ITU-T&;enspG.987
    • B、IEEE&;ensp802.1AX
    • C、IEEE&;ensp802.11ac
    • D、ITU-T&;enspG.984

    正确答案:C

  • 第6题:

    Which method in the Thread class is used to create and launch a new thread of execution?()

    • A、 Run();
    • B、 Start();
    • C、 Execute();
    • D、 Run(Runnable r);
    • E、 Start(Runnable r);
    • F、 Execute(Thread t);

    正确答案:B

  • 第7题:

    Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work?   CODE BLOCK a:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   Thread t = new Thread(r);   t.start();   CODE BLOCK b:   Thread t = new Thread() {  public void start() {   Work.doIt();  }  };   t.start();   CODE BLOCK c:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   r.start();  CODE BLOCK d:   Thread t = new Thread(new Work());   t.start();   CODE BLOCK e:   Runnable t = new Runnable() {   public void run() {   Work.doIt();   }   };   t.run();  

    • A、Code block a.
    • B、Code block B.
    • C、Code block c.
    • D、Code block d.
    • E、Code block e.

    正确答案:A

  • 第8题:

    单选题
    class Work implements Runnable {  Thread other;   Work(Thread other) { this.other = other; }  public void run() {  try { other.join(); } catch (Exception e) { }  System.out.print("after join ");  } }  class Launch {  public static void main(String [] args) {  new Thread(new Work(Thread.currentThread())).start();  System.out.print("after start ");  } }  结果为:()
    A

    after join

    B

    after start

    C

    after join after start

    D

    after start after join


    正确答案: C
    解析: 暂无解析

  • 第9题:

    多选题
    Which two can be used to create a new Thread?()
    A

    Extend java.lang.Thread and override the run method.

    B

    Extend java.lang.Runnable and override the start method.

    C

    Implement java.lang.thread and implement the run method.

    D

    Implement java.lang.Runnable and implement the run method.

    E

    Implement java.lang.Thread and implement the start method.


    正确答案: D,B
    解析: 暂无解析

  • 第10题:

    单选题
    Which method in the Thread class is used to create and launch a new thread of execution?()
    A

     Run();

    B

     Start();

    C

     Execute();

    D

     Run(Runnable r);

    E

     Start(Runnable r);

    F

     Execute(Thread t);


    正确答案: E
    解析: 暂无解析

  • 第11题:

    单选题
    LACP符合以下哪个协议标准()
    A

    ITU-T&;enspG.987

    B

    IEEE&;ensp802.1AX

    C

    IEEE&;ensp802.11ac

    D

    ITU-T&;enspG.984


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work?   CODE BLOCK a:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   Thread t = new Thread(r);   t.start();   CODE BLOCK b:   Thread t = new Thread() {  public void start() {   Work.doIt();  }  };   t.start();   CODE BLOCK c:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   r.start();  CODE BLOCK d:   Thread t = new Thread(new Work());   t.start();   CODE BLOCK e:   Runnable t = new Runnable() {   public void run() {   Work.doIt();   }   };   t.run();
    A

    Code block a.

    B

    Code block B.

    C

    Code block c.

    D

    Code block d.

    E

    Code block e.


    正确答案: C
    解析: 暂无解析

  • 第13题:

    YouworkasanetworkadministratoratABC.com.The&ensp

    YouworkasanetworkadministratoratABC.com.TheABC.comnetworkconsistsofasingledomainnamedABC.com.AllserversontheABC.comnetworkhaveWindowsServer2012R2installed.TheABC.comnetworkcontainsanetworkattachedprinternamedHPNet01.OnlymembersofagroupnamedABCUsersandmembersoftheAdministratorsgroupwillbeallowedtouseHPNet01.YoupublishtheHPNet01inActiveDirectoryandshareitfromadomaincontrollernamedABC_DC02.YouthenassignthedenyPrintpermissionstoHPNet01fortheEveryonegroup.

    WhatelseshouldyoudotomeettherequirementsforHPNet01?()


    参考答案:B

  • 第14题:

    Thread类的哪个方法用来启动线程的运行?()

    A. run()

    B. start()

    C. begin()

    D. execute(Thread t)


    正确答案:B

  • 第15题:

    Properties类中的哪个方法可以和IO流相关联()。

    • A、 getProperty()
    • B、 setProperty()
    • C、 load()
    • D、 stringPropertyNames()

    正确答案:C

  • 第16题:

    Which two code fragments will execute the method doStuff() in a separate thread?()

    • A、 new Thread() { public void run() { doStuff(); } }
    • B、 new Thread() { public void start() { doStuff(); } }
    • C、 new Thread() { public void start() { doStuff(); } } .run();
    • D、 new Thread() { public void run() { doStuff(); } } .start();
    • E、 new Thread(new Runnable() { public void run() { doStuff(); } } ).run();
    • F、 new Thread(new Runnable() { public void run() { doStuff(); } }).start();

    正确答案:D,F

  • 第17题:

    Under which circumstances will a thread stop?()  

    • A、The method waitforId() in class MediaTracker is called.
    • B、The run() method that the thread is executing ends.
    • C、The call to the start() method of the Thread object returns.
    • D、The suspend() method is called on the Thread object.
    • E、The wait() method is called on the Thread object.

    正确答案:B

  • 第18题:

    Which two can be used to create a new Thread?()   

    • A、 Extend java.lang.Thread and override the run method.
    • B、 Extend java.lang.Runnable and override the start method.
    • C、 Implement java.lang.thread and implement the run method.
    • D、 Implement java.lang.Runnable and implement the run method.
    • E、 Implement java.lang.Thread and implement the start method.

    正确答案:A,D

  • 第19题:

    Which two code fragments will execute the method doStuff() in a separate thread?()

    • A、new Thread() {public void run() { doStuff(); }};
    • B、new Thread() {public void start() { doStuff(); }};
    • C、new Thread() {public void start() { doStuff(); }}.run();
    • D、new Thread() {public void run() { doStuff(); }}.start();
    • E、new Thread(new Runnable() {public void run() { doStuff(); }}).start();

    正确答案:D,E

  • 第20题:

    单选题
    Under which circumstances will a thread stop?()
    A

    The method waitforId() in class MediaTracker is called.

    B

    The run() method that the thread is executing ends.

    C

    The call to the start() method of the Thread object returns.

    D

    The suspend() method is called on the Thread object.

    E

    The wait() method is called on the Thread object.


    正确答案: B
    解析: 暂无解析

  • 第21题:

    多选题
    Which two code fragments will execute the method doStuff() in a separate thread?()
    A

    new Thread() { public void run() { doStuff(); } }

    B

    new Thread() { public void start() { doStuff(); } }

    C

    new Thread() { public void start() { doStuff(); } } .run();

    D

    new Thread() { public void run() { doStuff(); } } .start();

    E

    new Thread(new Runnable() { public void run() { doStuff(); } } ).run();

    F

    new Thread(new Runnable() { public void run() { doStuff(); } }).start();


    正确答案: C,D
    解析: 暂无解析

  • 第22题:

    多选题
    Which two code fragments will execute the method doStuff() in a separate thread?()
    A

    new Thread() {public void run() { doStuff(); }};

    B

    new Thread() {public void start() { doStuff(); }};

    C

    new Thread() {public void start() { doStuff(); }}.run();

    D

    new Thread() {public void run() { doStuff(); }}.start();

    E

    new Thread(new Runnable() {public void run() { doStuff(); }}).start();


    正确答案: C,A
    解析: 暂无解析

  • 第23题:

    单选题
    Click the Exhibit button. Assuming the tag library in the exhibit is imported with the prefix stock,which custom tag invocation outputsthe contents of the variable exposed by the quote tag?()
    A

    <;stock:quote&ensp;symbol=";SUNW";&ensp;/>;${var}

    B

    ${var}.&ensp;<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;

    C

    <;stock:quote&ensp;symbol=";SUNW";>;.&ensp;${var}.&ensp;<;/stock:quote>;

    D

    <;stock:quote&ensp;symbol=";SUNW";&ensp;var=";quote";&ensp;/>;${quote}


    正确答案: A
    解析: 暂无解析

  • 第24题:

    单选题
    转专业后,学籍有效期从()开始计算。
    A

    转专业后学习开始的时间&ensp;

    B

    提出转专业申请的时间&ensp;&ensp;

    C

    转专业批准的时间

    D

    入学注册时


    正确答案: B
    解析: 暂无解析