东华软件笔试题北京东华合创数码科技股份有限公司笔试试卷(Java 语言部分)姓名: 联系方式: 1
which won’t cause a compiler warning or error
(多选)a) float f = 1
3;b) char c = ‘a’;c) byte b = 257;d) boolean b = null;e) int i = 10;2
请选择下面这段代码的输出结果
int i = 0;switch (i) {case 0:System
println("zero");case 1:System
println("one");case 2:System
println("two");break;case 3: System
println("three");}1) zero2) zero,one3) zero,one,two4) zero,one,two,three3
public class Test{ private static int j=0; public static boolean methodB(int k){ j+=k; return true; } public static void methodA(int i){ boolean b; b=i>10&methodB(1); b=i>10&&methodB(2); } public static void main(String args){ methodA(0); 17) } } what is the value of j at line 17
1)0 2)1 3)24)34
If we execute the code below with “java Test Red Green Blue”, what is the res