试题详情
- 单项选择题 11. public void testIfA() { 12. if(testIfB(”True”)) { 13. System.out.println(”True”); 14. } else { 15. System.out.println(”Not true”); 16. } 17. } 18. public Boolean testIfB(String str) { 19. return Boolean.valueOf(str); 20. } What is the result when method testIfA is invoked?()
A、 True
B、 Not true
C、 An exception is thrown at runtime.
D、 Compilation fails because of an error at line 12.
E、 Compilation fails because of an error at line 19.
- A
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- class Beta&ens
- 下面有关JVM内存,说法错误的是()。
- Which three&ens
- 判断101-200之间有多少个素数,并输
- Which statement
- You are b
- package com.sun.sjc
- 现有: class&ens
- public class&e
- Swing组件提供的设置字体的方法是:(
- 假如我们想要对象eh来处理TextAre
- Which JSTLQ
- 1.class SuperF
- 选项中哪一行代码可以添加 题目
- 不可见组件如何起到调整间距的作用?()
- 常用的不可见区域有哪些?()
- package test; class
- 求表达式e^x ≈1+x+x^2/2!+
- 卡片式分局所管理的是面板。一个采用卡片式