单项选择题

下列程序的运行结果是( )。 public class Sun { public static void main(String args[]) { int a=1; int b=1; for(int i=1;i<=3;i++) { a=a+b; b=b+a; } System.out.println(a+" "+B) ; } }

A.6 6
B.5 8
C.13 21
D.34 55
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果为( )。 public class Reentrant { public synchronized void a() { b(); System.out.println( here I am, in a() ); } public synchronized void b() { System.out.println( here I am, in b() ); } public static void main(String args[ ]) { Reentrant r=new Reentrant(); r.a(); } }
A.here I am, in a()/here I am, in b()
B.hereI am, in b()/here I am, in a()
C.here I am, in a()
D.here I am, in b()
单项选择题
关系数据库的概念模型是( )的集合。
A.关系模型
B.关系模式
C.关系子模式
D.存储模式
相关试题
  • 下列JApplet使用重写paintCompon6t()方...
  • 现在有Java Applet小程序的源程序文件MyAp...
  • 下面ChangeTitle()中对b1和b2按键构造...
  • 输入输出在计算机中有两个主要作用,是 【...
  • 有如下代码片段,请在画线处填入正确的代码...