搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? 

A、 foo.notify();

B、 bar.notify();

C、 foo.notifyAll();

D、 Thread.notify();

E、 bar.notiFYAll();

F、 Object.notify();

更多“foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? ”相关的问题
第4题

A、 fooand bar would both be removed.  B、 foo would be removed while bar would remain accessible.  C、 foo would be removed, bar would still exist but would be unusable.  D、 Both fooand bar would remain accessible.  E、 You would be asked whether bar should be removed.  

点击查看答案
第5题

A、 pageContext.getAttribute(“foo”);  B、 getPageContext().getAttribute(“foo”);  C、 pageContext.getApplicationScope(“foo”);  D、 pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);  E、 getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);  

点击查看答案
第6题

A、The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar  B、The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar  C、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class  D、The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar  E、The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac –cp /foo/myLib.jar/Paper Book.java  F、The JAR file is located at foo/myLib.jar and the Book class is compiled using javac –classpath /foo/myLib.jar Book.java  

点击查看答案
第8题

A、A. Int foo = (int) Math.max(bar);  B、B. Int foo = (int) Math.min(bar);  C、C. Int foo = (int) Math.abs(bar);  D、D. Int foo = (int) Math.ceil(bar);  E、E. Int foo = (int) Math.floor(bar);  F、F. Int foo = (int) Math.round(bar);  

点击查看答案
第9题

A、<jsp:import file=’foo.jsp’ />  B、<jsp:import page=’foo.jsp’ />  C、<jsp:include page=’foo.jsp’ />  D、<jsp:include file=’foo.jsp’ />  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服