可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

String foo = “bl


String foo = “blue”;    Booleanbar = 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.
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、String foo = “bl

String foo = blue; Boolean[]bar = new Boolean [1]; if (bar[0])  { foo = green; }...

3、3. string foo = &

3. string foo = ABCDE; 4. foo.substring(3);  5. foo.concat(XYZ);  6.  Type the value of foo at line 6.()

4、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

5、3. string foo = &

3. string foo = ABCDE; 4. foo.substring(3); 5. foo.concat(XYZ); 6.    Type the value of foo at line 6.()

6、“频段0”的CDMA2000-1X系统沿用了AMPS的信道编号,一个AMPS

“频段0”的CDMA2000-1X系统沿用了AMPS的信道编号,一个AMPS的信道编号对应的频谱宽度是多少?()A200KHzB30KHzC25KHzD150KHz