试题详情
- 单项选择题 public class X { public static void main (String[]args) { String s1 = new String (“true”); Boolean b1 = new Boolean (true); if (s2.equals(b1)) { System.out.printIn(“Equal”); } } } What is the result?()
A、 The program runs and prints nothing.
B、 The program runs and prints “Equal”
C、 An error at line 5 causes compilation to fail.
D、 The program runs but aborts with an exception.
- A
关注下方微信公众号,在线模考后查看
热门试题
- Which statemen
- 下面有关java内存模型的描述,说法错误
- Which statement
- 举例说明getter和setter方法的
- 1) class
- public classYippee{
- class Guy{Stri
- Map系列对象中,哪个对象的内部实现是双
- 下面哪些说明是正确的()
- The tag ha
- 对于变量的初始化,以下几种方法中错误的是
- public class&e
- 线程由以下哪些部分组成?()
- What is th
- 两个乒乓球队进行比赛,各出三人。甲队为a
- AnInterface is
- 计算y=1+2/3+3/5+4/7+…+
- 1. public&ensp
- 试列举出图形用户界面中你使用过的组件。
- Click the