考题
请阅读下面程序 public class ThreadTest{ public static void main(String args[])throws Ex- ception{ int i=0; Hello t=new Hello; ; while(true){ System.Out.println("Good Morning"+i++): if(i= =2t.isAlive){ System.out.println("Main waiting for Hel- lo!"); join;//等待t运行结束 } if(i= =5)break;} } } class Hello extends Thread{ int l; public void run{ while(true)( System.Out.println("Hell0"+i++); if(i= =5)break;)))A.t.sleepB.t.yieldC.t.interruptD.t.start
考题
classOrderimplementsRunnable{publicvoidrun(){try{Thread.sleep(2000);}catch(Exceptione){}System.out.print(in);}publicstaticvoidmain(String[]args){Threadt=newThread(newOrder());t.start();System.out.print(pre);try{t.join();}catch(Exceptione){}System.out.print(post);}}可产生哪两项结果?()A.inpreB.preinC.inprepostD.preinpost
考题
classOrderimplementsRunnable{publicvoidrun(){try{Thread.sleep(2000);}catch(Exceptione)System.out.print(in);publicstaticvoidmain(String[]args){Threadt=newThread(newOrder());t.start();System.out.print(pre);try{t.join();}catch(Exceptione){}System.out.print(post);可产生哪两项结果?()A.preinpostB.preinC.inpostpreD.inprepostE.prepostin
考题
publicclassTwoThreads{privatestaticObjectresource=newObject();privatestaticvoiddelay(longn){try{Thread.sleep(n);}catch(Exceptione){System.out.print(”Error);}}publicstaticvoidmain(String[]args){System.out.print(”StartMain);newThread1().start();delay(1000);Threadt2=newThread2();t2.start();delay(1000);t2.interruptdelay(1000);System.out.print(”EndMain);}staticclassThread1extendsThread{publicvoidrun(){synchronized(resource){System.out.print(”Startl);delay(6000);System.out.print(”End1);}}}staticclassThread2extendsThread{publicvoidrun(){synchronized(resource){System.out.print(”Start2);delay(2000);System.out.print(”End2);}}}}Assumethatsleep(n)executesinexactlymmilliseconds,andallothercodeexecutesinaninsignificantamountoftime.Whatistheoutputifthemain()methodisrun?()
考题
publicclassThreads2implementsRunnable{publicvoidnun(){System.out.println(”run.”);thrownewRuntimeException(”Problem”);}publicstaticvoidmain(String[]args){Threadt=newThread(newThreads2());t.start();System.out.println(”Endofmethod.”);}}Whichtwocanberesults?()A.java.lang.RuntimeException:ProblemB.run. java.lang.RuntimeException:ProblemC.Endofmethod. java.lang.RuntimeException:ProblemD.Endofmethod. run.java.lang.RuntimeException:ProblemE.run. java.lang.RuntimeException:ProblemEndofmethod.
考题
Which command(s) will result in the smallest sized backup of the text files contained in the /staticFS filesystem?()
A.tar -cvf file_system.tar /staticFS ; gzip file_system.tarB.tar -xvf /staticFS file_system.tar ; gzip file_system.tarC.tar -cvf /staticFS file_system.tar ; compress file_system.tarD.tar -xvf file_system.tar /staticFS ; compress file_system.tar
考题
Whatshouldanadministratordotosetuparequiredroleforauseridthatwillallowittostart/stopWPARsontheserver?()
A.OnthedesiredWPAR:mkroleauthorizations=aix.wpar.systemnewRolesetkst-trolechuser roles=newRoledefault_roles=newRoleuser1B.Ontheglobalenvironment:mkroleauthorizations=aix.wpar.systemnewRolesetkst-trole chuserroles=newRoledefault_roles=newRoleuser1C.OnthedesiredWPAR:Editthe/etc/security/authorizationsfileadding:‘newRoleauthorizations=aix.wpar.system’setkst-trolechuserroles=newRoledefault_roles=newRoleuser1D.Ontheglobalenvironment:Editthe/etc/security/authorizationsfileadding:‘newRoleauthorizations=aix.wpar.system’setkst-trolechuserroles=newRoledefault_roles=newRoleuser1
考题
在模式下,如果键入system,则表示A.sysname
B.system-view
C.system-log
D.system-name
考题
使用snmptuil.exe 可以查看代理的 MiB对象,下列文本框内oid部分是( ).C:\ Users\Administrator> snmptuil get 192.168.1.31 public.1.3.6.1.2.1.1.3.0Variable=system.sysUpTime.0Value=TimeTicks 1268830A.192.168.1.31
B.1.3.6.1.2.1.1.3.0
C.system.sysUpTime.0
D.TimeTicks 1268803
考题
GDI+主要封装于命名空间()之中。A.System.DrawingB.System.NetC.System.XmlD.System.IO