试题详情
- 单项选择题 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.
- B
关注下方微信公众号,在线模考后查看
热门试题
- 11. String&ens
- 什么是递归方法?递归方法有哪两个基本要素
- 关于抽象类与最终类,下列说法错误的是()
- 下列有关接口的叙述错误的是哪项?()
- class BaseClas
- 下列关于标识符的叙述正确的是哪项?()&
- Click the
- 以下关于GUI容器缺省布局管理器的叙述,
- public class&e
- 说明基本数据类型与引用类型的差别。
- 4位反序数,设N是一个四位数,它的9倍恰
- Which statemen
- A JSP pa
- You need
- What is th
- 要求1000!(1000*999*998
- 11. rbo =
- Which the two&
- 如何定义保护级的成员函数或是成员变量?(
- Which three&ens