Whichis the numerical range of a byte?
A. 0 ... 255
B. 0 ... 65535
C. -128 ... 127
D. -32768 ... 32767
查看答案
学习Java应该从 版本入手。
A. Java ME
B. Java SE
C. Java EE
Which two are valid declarations of a boolean? (Choose two.)
A. boolean b = 0;
B. boolean b = true;
C. boolean b = "true";
D. boolean b = 'true';
E. booleanb = (3 >= 0);
Which two are valid declarations of a float? (Choose two.)
A. float f = 1F;
B. float f = 1.0;
C. float f = '1';
D. float f = "1";
E. float f = 1.0d;
设有数组定义:int A[ ] = { 10 , 20 , 30 , 40 , 50 , 60 , 70}; 则执行以下几个语句后的输出结果是。 int s = 0 ; for (int i = 0 ; i < A.length ; i + + ) if ( i % 2 = = 1 ) s += A.[i] ; System.out.println(s);