网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列语句byte b=011;System.out.println(b);输出结果为 ( )

A.B

B.11

C.9

D.011


参考答案

更多 “ 下列语句byte b=011;System.out.println(b);输出结果为 ( )A.BB.11C.9D.011 ” 相关考题
考题 下列语句输出结果为 。public class A{public static void main(String[]args){byte b=0xa;System.out.println(b);}}() A.0xaB.aC.1D.10

考题 下列语句输出结果为( )。 public class test { public static void main (String args[]) { int a=-67,b=116,c=78; int e=~c>>2(al~b); System.out.println(e); } }A.70B.84C.65D.80

考题 下列语句输出结果为( )。public class test{public static void main(String args[]){byte b=OXA;System.out.println(b);}}A.OXAB.AC.1D.10

考题 执行下列程序段之后,输出的结果是( )。public class Test{ public static void main(String[ ] args) { byte a = 2; short b = 3; long c = 4; c=a%b*4%b; System.out.println(c) ; } }A.2B.1C.-1D.-2

考题 顺序执行下列两条语句,输出结果是______。String s="You are a pretty boy!";System.out.println(s.length( ));

考题 下列语句输出结果为( )。 public class test { public static void main (String args[ ]) { int a=23,b=8,c=5; int e=a%(b%c); System.out.println(e); } }A.0B.1C.2D.3

考题 执行下列程序段之后,输出的结果是______。 public class Test8 { public StatiC void main (String[] args) { byte a=2; short b=3; long c=4; c=a%b*4%b; System.out.println (c); } }A.2B.1C.-2D.-1

考题 下列语句输出结果为( )。 public class test { public static void main (String args[]) { Strings1=newString("HOW"); Strings2=newString("How"); System.out.println(!(s1.equals(s2))): } }A.假B.真C.0D.1

考题 下列语句输出结果为( )。 public class test { public static void main(String args[ ]) { int x=10,y=8; boolean b=true; System.out.println(x>0&&x<y||b); } }A.真B.假C.1D.0

考题 下列语句输出结果为 ( ) public class test { public static void main(String args[]) { int a=-67,b=116,c=78; int e=~c>>2(a|~B) ; System.out.println(e); } }A.70B.-84C.65D.-80

考题 下列语句输出结果为( )。 public class test { public static void main (String args[ ]) { int m=20,n=10; System.out.println((- -m)*(n+ +)); } }A.200B.190C.209D.220

考题 下列语句输出的结果为( )。 public class test { public static void main(String args[]) { byte b=OXA; System.out.println(b); } }A.OXAB.AC.1D.10

考题 下列语句输出结果为( )。 public class test { public static void main(String args[]) { byte b=011; System.out.prinfin(b); } }A.BB.11C.9D.011

考题 输出语句:prinff(”%d\n”,ll+011);的输出结果是( )。A.20B.22C.022D.021

考题 若有下列定义和语句: int u=011, v=Ox11,w=11; printf("%o,%x,%d\n”,u,v,w); 则输出结果是( )。A.9,17,11B.9,11,11C.11,11,11D.11,17,11

考题 执行下列程序段之后,输出的结果为______。 public class ex41 { public static void main(string[] args) { int x=15; byte y=1; x>>=y++; System.out.println(x); } }A.3B.7C.14D.10

考题 下列代码执行之后,输出的结果为______。 public class ex34 { public static void main(String[] args) { byte a=-128; byte b=(a|127)>0?(byte)(~a>>128:(byte)(~a<<128); System. out. Println(b); } }A.-128B.128C.127D.-127

考题 编译和运行以下代码结果为:1. public class EqualsTest{2. public static void main(String args[]){3. byte A=(byte)4096;4. if(A== 4096、System.out.println("Equal");5. else System.out.println("Not Equal");6. }7. }A.在第3行出现转换丢失精度的编译错误.B.输出 "Not Equal".C.输出 "Equal".

考题 语句 System.out.println("Hello,world!"+4+8);的输出结果是Hello,world!48。() 此题为判断题(对,错)。

考题 研究下面的Java代码:  switch (x) {  case 1:  System.out.println(1);  case 2:  case 3:  System.out.println(3);  case 4:  System.out.println(4); }  当x=2时,运行结果是()。 A、没有输出任何结果B、输出结果为3C、输出结果是3和4D、输出结果是1、3和4

考题 顺序执行以下两个语句的输出结果是:() 。 String s = "广东海洋大学"; System.out.println(s.length ));

考题 下列语句片段:inta=-67,b=116,c=78;intd=~a|bc;System.out.println();输出结果为()。A、70B、67C、78D、56

考题 设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。

考题 下列语句片段inta=10,b=4,c=20,d=6;System.out.println(a++*b+c*--d);输出结果为()。A、144B、28C、140D、不能执行

考题 单选题研究下面的Java代码:  switch (x) {  case 1:  System.out.println(1);  case 2:  case 3:  System.out.println(3);  case 4:  System.out.println(4); }  当x=2时,运行结果是()。A 没有输出任何结果B 输出结果为3C 输出结果是3和4D 输出结果是1、3和4

考题 单选题下列语句片段inta=10,b=4,c=20,d=6;System.out.println(a++*b+c*--d);输出结果为()。A 144B 28C 140D 不能执行

考题 单选题下列语句片段:inta=-67,b=116,c=78;intd=~a|bc;System.out.println();输出结果为()。A 70B 67C 78D 56