单项选择题
String foo = “blue”; Boolean[]bar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result? ()
A. Foo has the value of “” B. Foo has the value of null. C. Foo has the value of “blue” D. Foo has the value of “green” E. An exception is thrown. F. The code will not compile.
多项选择题 Whichtwovaliddeclarationsofachar?()
单项选择题 public class foo { static String s; public static void main (String[]args) { system.out.printIn (“s=” + s); } } What is the result?()
多项选择题 public interface Foo{ int k = 4; } Which three are equivalent to line 2?()