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);
JDK安装后一般设置三个环境变量:_____、_____、_____。(本题全部全部英文小写、不要求顺序)
Java源程序应该写在扩展名为.______ 的文本文件中。(英文全部小写)