单项选择题

下列程序的运行结果是( )。 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.存储模式
相关试题
  • 如下的代码段中,如果方法unsafe()正常运...
  • 有如下代码段 public class OperatorAnd...
  • 有如下的代码段,当编译和运行时,下列各选...