单项选择题

方法resume()负责恢复哪些线程的执行( )。

A.通过调用stop()方法而停止的线程
B.通过调用sleep()方法而停止运行的线程
C.通过调用wait()方法而停止运行的线程
D.通过调用suspend()方法而停止运行的线程
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的输出结果是( )。 public class Sun public static void main(String args[ ]) int n=4 ,sum=0; while (n>0) sum+=n; n--; System.out.println( sum is +sum);
A.sum is 10
B.sum is 4
C.10
D.4
填空题
阅读下面代码: import java.awt.*; public class Examll_2 public static void main(String args[]) ______; f.add( North ,new Button( North )); f.add( South ,new Button( South )); f.add( East ,new Button ( East )) ;; f.add( West ,new Button( West )); f.add( Center ,new Button ( Center )); f.pack (); f.setVisible(true); 请在程序中的画线处添上适当的语句 【11】 ,使程序能正确执行。
相关试题
  • 下列JApplet对鼠标单击事件进行处理,当鼠...
  • 有如下代码段,请填写完整所缺的部分。 im...
  • Java图形用户界面编程中的最基本组成部分是...
  • 变量名、 【14】 首单词小写,其余单词...
  • Applet工作在图形方式下,向其中绘图、显示...