单项选择题
下列程序运行后的输出结果是( )。
public class Sun
public static void main(String args[])
int a,b;
a=0;
b=0;
for(int m=1;m<=10;m++)
a=a+1;
b=0;
for(int j=1;j<=10;j++)
a=a+1;
b=b+2;
System.out.println(a+","+b);
A.10,20
B.20,110
C.110,20
D.200,110
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列代码段的输出结果为( )。 public class priority public static void main(String args[]) int a=10,b=4,c=20,d=6; System.out.println(a+c%b); System.out.println(a++*b+c--d);
A.1040
B.1096
C.8060
D.96 60
点击查看答案&解析
单项选择题
如要求读取大文件的中间一段内容,最方便的是采用下列哪种流来操作 ( )
A.File stream
B.Pipe stream
C.Filter stream
D.Random stream
点击查看答案&解析
相关试题
程序中的DrawAny是—个显示图像的Applet,...
线程的 【9】 方法只会使具有与当前线程...
【11】 布局管理器能够帮助用户处理两个...
一个applet标记中,必须出现的属性项有 【...
用synchronized标识的共享数据必须是 【8...