单项选择题
下列情况中,不会使线程返回所持有的对象锁的是
A.当synchronized()语句块执行完毕
B.当调用了线程的suspend()方法
C.当在synchronized()语句块中出现异常(Exceptio
D.当持有锁的线程调用该对象的wait()方法
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在匹配器(Matcher)类中,用于输入字符串与模式串比较的方法是
A.static boolean matches()
B.boolean matcher,find()
C.int matcher,start()
D.int matcher,end()
点击查看答案&解析
单项选择题
下面程序段: boolean a=false; boolean b=true; boolean c=(a&&b)&&(!b); boolean result=(a&b)&(!b); 执行完后,正确的结果是()
A.c=false;result=false
B.c=true,result=true
C.c=true;result=false
D.c=false;result=true
点击查看答案&解析
相关试题
Java中对Applet设置了严格的安全限制。下列...