classWorkimplementsRunnable{Threadother;Work(Threadother){this.other=other;}publicvoidrun(){try{other.join();}catch(Exceptione){}System.out.print("afterjoin");}}classLaunch{publicstaticvoidmain(String[]args){newThread(newWork(Thread.currentThread())).start();System.out.print("afterstart");}}结果为:()
A.afterjoin
B.afterstart
C.afterjoinafterstart
D.afterstartafterjoin
第1题:
第2题:
1、针对下列程序段,需要()个测试用例才可以满足语句覆盖的要求。 switch (value ) { case 0: other = 30; break; case 1: other = 50; break; case 2: other = 300; case 3: other = other/value; break; default: other = other * value; }
A.2
B.3
C.4
D.5
第3题:
若有以下说明和语句,则引用方式不正确的是? struct worker{ int no; char *name; }work, *p=&work;
A.work.no
B.(*p).no
C.p->no
D.work->no
第4题:
下列哪些工程名是合法的()。
A.work_2
B.work2
C.2work
D.work2_
第5题:
2、若有以下说明和语句,则引用方式不正确的是? struct worker{ int no; char *name; }work, *p=&work;
A.work.no
B.(*p).no
C.p->no
D.work->no