单项选择题
执行下面程序后输出的正确结果是
Public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(”,”);
System.out.print(x/y);
A) 20.0,1
B) 20.0,1.0
C) 20,0
D) 20,1.0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列代码的执行结果是( )。 public class test5 public static void main (String args[]) String s1=new String( hello ); String s2=new String( hello ); System.out.prim(s1==s2); System.out.print( , ); System.out.println(s1.equals(s2));
A.true,false
B.true,true
C.false,true
D.false,false
点击查看答案
单项选择题
以下程序运行后输出的结果是( )。 f(int a) int b=0;static int c=3; b++;c++; return(a+b+c); main() int a=2,1; for(i=0;i<3;i++) printf( %4d ,f(a));
A.789
B.678
C.567
D.876
点击查看答案
相关试题
下面程序段的输出结果是______。 cl...
定义类头时能使用的修饰符是( )。
下面说法正确的是______。
以下各选项中能正确声明一个表示50个值为...
关系表中的每一横行称为一个