单项选择题

下列程序执行的结果是______。
public class exl3

public static void main(String[] args)

int a=100,b=4;
do
a/=b;
while (a>10&&b++<10);
System. out. println (a);


A. 12 B. 6 C. 24 D. 5

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

单项选择题
下面的程序是完成一个容器的例子,所缺部分正确的选项是( )。 import java.awt.*; public class MyFrame extends Frame public static void main(String args[]) MyFrame fr=new MyFrame( Hello Out There! ); fr.setSize(200,200); fr.setBackground(Color.red); ______; public MyFrame(String str) super(str); 调用父类的构造方法 A) fr.setVisible(false) B) fr.setVisible C) fr.setVisible(true) D) 以上都不是
相关试题
  • 变量类型有两大类: ______ 和复合...
  • ODL转换关系时,若为原子类型属性,类的每...
  • 设有数组定义:int a[]=11,22,3...
  • 下列是一个Java Applet程序,填空使它的功...
  • 设有定义: struct person int ID;cha...