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.
A. Float foo = -1; B. Float foo = 1.0; C. Float foo = 42e1; D. Float foo = 2.02f; E. Float foo = 3.03d; F. Float foo = 0x0123;