单项选择题
执行下面程序后输出的正确结果是( )。
public class Test
public static void main(String args[])
System.out.print(100%3);
System.out.print(",");
System.out.print(100%3.0);
A.1,1
B.1,1.0
C.1.0, l
D.1.0,1.0
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下面程序段的输出结果是( )。 public class Test public static void main(String args[]) int a, b; for(a=1, b=1; a<=100; a++) if(b>=10) break; if (b%2==1) b+=-2; continue; System.out.println(a);
A.5
B.6
C.7
D.101
点击查看答案
单项选择题
下列程序段运行的结果为( )。 public class Test static void print(String s,int i) System.out.pdntlnC String: +s+ ,int: +i); static void print(iht i,String s) System.out.prinflnCint: +i+ ,gtring: +s); public static void main(String[] args) print(99, Int first );
A.String:String first,int: 11
B.int: 11,String:Int first
C.String:String first,int:99
D. int:99,Stfing:Int first
点击查看答案
相关试题
下列代码中,将引起一个编译错误的行是( ...
已知有下面的类说明: pubic class Test...