String foo = “blue”; Boolean[]bar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result? ()
第1题:
public class Test { public static void main (String args) { string foo = “blue”; string bar = foo; foo = “green”; System.out.printIn(bar); } } 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题:
A.Foohasthevalueof“”
B.Foohasthevalueofnull.
C.Foohasthevalueof“blue”
D.Foohasthevalueof“green”
E.Anexceptionisthrown.
F.Thecodewillnotcompile.
第4题:
int index = 1; int foo = new int ; int bar = foo [index]; int baz = bar + index; What is the result?()
第5题:
Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?
第6题:
int index = 1; String test = new String; String foo = test[index]; What is the result?()
第7题:
int index = 1; boolean test = new Boolean; boolean 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? ()