packagetest;classTarget{publicStringname=hello”;}Whatcandirectlyaccessandchangethevalueofthevariablename?()
A. anyclass
B. onlytheTargetclass
C. anyclassinthetestpackage
D. anyclassthatextendsTarget
查看答案
voidwaitForSignal(){Objectobj=newObject();synchronized(Thread.currentThread()){obj.wait();obj.notify();}}Whichistrue?()
A. ThiscodemaythrowanInterruptedException.
B. ThiscodemaythrowanIllegalStateException.
C. ThiscodemaythrowaTimeoutExceptionaftertenminutes.
D. Thiscodewillnotcompileunless“obj.wait()”isreplacedwith“((Thread)obj).wait()”.
E. Reversingtheorderofobj.wait()andobj.notify()maycausethismethodtocompletenormally.
F. Acalltonotify()ornotifyAll()fromanotherthreadmaycausethismethodtocompletenormally.
证券登记结算公司的主要职能包括()。
A. 中央登记
B. 中央存管
C. 证券信用评级
D. 中央结算
E. 信托投资
宋代理学三种“本体论”学派不包括()。
A. 以气为主
B. 以理为主
C. 以心为主
D. 以道为主
甘肃是我国石窟最多的省份,下列石窟中____、____、____在甘肃。
A. 麦积山石窟
B. 天梯山石窟
C. 敦煌石窟
D. 龙门石窟