int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()
第1题:
int index = 1; String test = new String; String foo = test[index]; What is the result?()
第2题:
Which statements concerning the relationships between the following classes are true?() class Foo { int num; Baz comp = new Baz(); } class Bar { boolean flag; } class Baz extends Foo { Bar thing = new Bar(); double limit; }
第3题:
有如下类定义:
class Foo
{
public:
Foo(int v):value(v){} // ①
~Foo(){} // ②
private:
Foo(){} // ③
int value = 0; // ④
};
其中存在语法错误的行是
A . ①
B . ②
C . ③
D . ④
第4题:
int index = 1; int foo = new int ; int bar = foo [index]; int baz = bar + index; What is the result?()
第5题:
String foo = “blue”; Boolean[]bar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result? ()
第6题:
Which code determines the int value foo closest to a double value bar?()
第7题:
Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?
第8题:
public class test( public static void main(string[]args){ string foo = args [1]; string foo = args [2]; string foo = args [3]; } ) And command line invocation: Java Test red green blue What is the result?()
第9题:
String foo = “blue”; Booleanbar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result?()
第10题:
public class test( public static void main(stringargs){ string foo = args [1]; string foo = args ; string foo = args ; } ) And command line invocation: Java Test red green blue What is the result? ()