[单选题]

阅读下面程序

public class Test3{

public static void main(String args[]){

int x=3,y=4,z=5;

String s= " xyz " ;

System.out.println(s+x+y+z);

}

}

程序运行的结果是

A.)xyz12

B.)xyz345

C.)xyzxyz

D.)12xyz

参考答案与解析:

相关试题

阅读下面程序public class Test3 { public static

[单选题]阅读下面程序 public class Test3 { public static void main(String[] args) { int x=3,y=4,z=5; String s="xyz": System.out.println(s+x+y+z); } } 程序运行的结果是A.xyz12B.xyz345C.xyzxyzD.12xyz

  • 查看答案
  • 阅读下面程序 public class Test3 { public stati

    [单选题]阅读下面程序 public class Test3 { public static void main(String args[]){ int x=3, y=4, z=5; String s="xyz"; System.out.primln(s+x+y+z); } } 程序运行的结果是A.xyzl2B.xyz345C.xyzxyzD.12xyz

  • 查看答案
  • 阅读下面程序 public class Test3 { public stati

    [单选题]阅读下面程序 public class Test3 { public static void main(String args[]){ int x=3, y=4, z=5; String s="xyz"; System.out.primln(s+x+y+z); } } 程序运行的结果是A.xyzl2B.xyz345C.xyzxyzD.12xyz

  • 查看答案
  • 阅读下面程序public class Test2{public static v

    [单选题]阅读下面程序public class Test2{public static void main(String args[]){int a=10,b=4,c=20,d=6;System.out.println(a++*b+c*-d);}}程序运行的结果是A.)144B.)160C.)140D.)164

  • 查看答案
  • 阅读下面程序public class Test4{public static v

    [单选题]阅读下面程序public class Test4{public static void main(String args[]){int i=10,j=3;float m=213.5f,n=4.0f;System.out.printin(i%j);S ystem.out.println(m%n);}}程序运行的结果是A.)1.0 和 1.5B.)1 和 1.5C.)1.0 和 2.5D.)1 和 2.5

  • 查看答案
  • 请阅读下面程序public class Test {public static

    [主观题]请阅读下面程序public class Test {public static void main (String[] args) {int i,j;for (i=1;i<5;i++) {for (j=1;j<=i;j++)system.out.print (i+"X"+j+"="+i*j+" ");System.out.println();}}}程序执行完后,i循环和j循环执行的次数分别是[ ]。

  • 查看答案
  • 阅读下面程序 public class Test1 {public static

    [单选题]阅读下面程序 public class Test1 { public static void main(String[] args){ System.out.println(34+56-6); System.out.println(26*2-3); System.out.println(3*4/2); System.out.println(5/2); } } 程序运行结果是A.84 49 6 2B.90 25 6 2.5C.84 23 12 2D.68 49 14 2.5

  • 查看答案
  • 阅读下面程序public class Test2 {public static

    [单选题]阅读下面程序 public class Test2 { public static void main(String args[]){ int a=1O, b=4, c=20, d=6; System.out.println(a++*b+c*--D) ; } } 程序运行的结果是A.144B.160C.140D.164

  • 查看答案
  • 阅读下面程序 public class Test4 {public static

    [单选题]阅读下面程序 public class Test4 { public static Void main(String args[]){ int i=10, j=3; float m=213.5f, n=4.0f; System.out.println(i%j); System.out.println(m%n); } } 程序运行的结果是A.1.0和1.5B.1和1.5C.1.0和2.5D.1和2.5

  • 查看答案
  • 阅读下面程序public class Test2 { public static

    [单选题]阅读下面程序 public class Test2 { public static void main(String[] args) { int a=10,b=4.c=20,d=6; System.out.println(a++*b+c*--d); } } 程序运行的结果是A.144B.160C.140D.164

  • 查看答案
  • 阅读下面程序public class Test3{public static v