A.整型變量 baz 的值為 0
B.整型變量baz 的值為 1
C.整型變量 baz 的值為 2
D.執(zhí)行錯(cuò)誤
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? ()
A. Baz has the value of “” B. Baz has the value of null C. Baz has the value of “red” D. Baz has the value of “blue” E. Bax has the value of “green” F. The program throws an exception.
int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()
A. Foo has the value of 0. B. Foo has the value of null. C. Foo has the value of true. D. Foo has the value of false. E. An exception is thrown. F. The code will not compile.