填空题

在深度为7的满二叉树中,度为2的结点个数为 【1】 。

【参考答案】

63或26-1
<上一题 目录 下一题>
热门 试题

单项选择题
请阅读下面程序 public class ThreadTest { public static void main(String args[]) throws Exception{ int i=0; Hello t=new Hello(); ____; while(true) { System.out.println( Good Moming +i++); if (i==2 && t.isAlive()) { System. out.println( Main waiting for Hello! ); t.join(); 等待t运行结束 } if(i==5) break; } } } class Hello extends Thread { int i; public void run() { while(true){ System.out.println( Hello +i++); if (i==5) break; } } } 为使该程序正确执行,下划线处的语句应是()

A.sleep()
B.yield()
C.interrupt()
D.start()

单项选择题
请阅读下面程序 public class ThreadTest{ public static void main(String args[]) { Thread t1=new Thread(new Hello()); Thread t2=new Thread(new Hello()); t1.start(); t2.start(); } } class Hello implements Runnable { int i; public void run() { while(true) { System.out.prinfin( Hello +i++); if(i=5) break; } } } 该程序创建线程使用的方法是()

A.继承Thread类
B.实现Runnable接口
C.t1.start()
D.t2.start()

相关试题
  • Applet类属于 【15】 包。
  • Swing是由纯Java实现的轻量级构件,没有本...
  • 在java.io包中,字符输出流类都是 【12...
  • 在Java线程中,共享数据的所有访问都必须作...
  • 阅读下列程序段 public class Operators...