test = new Boolean;
boolean foo= test [index];
What is the result?
boolean foo= test [index];
What is the result?
举一反三
- Given: int index = 1; boolean[] test = new Boolean; boolean foo= test [index]; What is the result?
- 以下程序代码执行后,哪个说法正确?int index = 1;boolean[] test =new Boolean[3];boolean foo=test [index]; A: 无法编译 B: foo的值是true C: foo的值是false D: foo的值是0
- What was the result of the test? The result is that the monkey _____________.
- 设有泛型类的定义如下class Test; { }则由该类创建对象时,使用正确的是? A: Test; x = new Test;(); B: Test x = new Test(); C: Test; x = new Test;(); D: Test; x = new Test;();
- int index = 1; int foo = new int ; int bar = foo [index]; int baz = bar + index; What is the result?() A: Baz has the value of 0 B: Baz has the value of 1 C: Baz has the value of 2 D: An exception is thrown. E: The code will not compile.