填空题

某二叉树中度为2的结点有18个,则该二叉树中有()个叶子结点。

【参考答案】

S
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的功能是在监控台上每隔一秒钟显示一个字符串“Hello!”,能够填写在程序中下划线位置,使程序完整并能正确运行的语句是() public class Test implements Runnable{ public static void main(String args[]){ Test t=new Test(); Thread tt=new Thread(t); tt.start(); } public void run(){ for(;;){ try{ ; }catch( e){} System.out.println( Hello ); } } }

A.sleep(1000)
B.sleep(1000)InteruptedException InterruptedException
C.Threasleep(1000)
D.Threasleep(1000)RuntimeException InterruptedException

单项选择题
阅读下列代码后public class Person{ int arr[]=new int[10]; public static void main(String args[]){ System.out.println(arr[1]); }}正确的说法是()

A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空

相关试题
  • 当使用Thread t=new Thread(r)创建一...
  • FileInputStream是字节流,BufferedWriter...
  • 请阅读下列程序代码,然后将程序的执行结果...
  • break语句最常见的用法是在switch语句中,...
  • StringBuffer类提供()字符串对象的表示。