问题:
Given: 310-025
Leading the way in IT testing and certification tools, www.testking.com
- 48 -
public class foo {
static String s;
public static void main (Stringargs) {
system.out.printIn (“s=” + s);
}
}
What is the result?()
A . The code compiles and “s=” is printed.
B . The code compiles and “s=null” is printed.
C . The code does not compile because string s is not initialized.
D . The code does not compile because string s cannot be referenced.
E . The code compiles, but a NullPointerException is thrown when toString is called.
Given: 310-025
Leading the way in IT testing and certification tools, www.testking.com
- 48 -
public class foo {
static String s;
public static void main (Stringargs) {
system.out.printIn (“s=” + s);
}
}
What is the result?()
● 参考解析
本题暂无解析
相关内容
相关标签