- 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
- 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
- 3、此文档由网友上传,因疑似侵权的原因,本站不提供该文档下载,只提供部分内容试读。如果您是出版社/作者,看到后可认领文档,您也可以联系本站进行批量认领。
查看更多
第1題
Given:
35. String #name = Jane Doe;
36. int $age = 24;
37. Double _height = 123.5;
38. double ~temp = 37.5;
Which two statements are true? (Choose two.)
A. Line 35 will not compile.
B. Line 36 will not compile.
C. Line 37 will not compile.
D. Line 38 will not compile.
答案:AD
第2題
Given:
1. public class TestString1{
2. public static void main(String[] args){
3. String str = 420;
4. str += 42;
5. System.out.print(str);
6. }
7. }
What is the output?
A. 42
B. 420
C. 462
D. 42042
E. Compilation fails.
F. An exception is thrown at runtime.
答案:D
第3題
Given:
1. public class Test{
2. public static void main(String[] args){
3. int x = 5;
4. boolean b1 = true;
5. boolean b2 = false;
6.
7. if((x==4) !b2)
8. System.out.print(1 );
9. System.out.print(2 );
10. if((b2=true) b1)
11. System.out.print(3 );
12. }
13. }
What is the result?
A. 2
B. 3
C. 1 2
D. 2 3
E. 1 2 3
F. Compilation fails.
G. An exception is thrown at runtime.
答案:D
第4題
Given:
22. public void go(){
23. String o = ;
24. z:
25. for(int x=0; x3; x++){
26. for(int y=0; y2; y++){
27.
您可能关注的文档
最近下载
- 病态窦房结综合征护理查房.pptx VIP
- 《生物监测》教学课件—01利用水生生物监测水质.ppt VIP
- 光伏工程建设标准强制性条文实施计划方案-范本.pdf VIP
- 青海省西宁市2024-2025学年八年级上学期期末调研测试物理试卷.docx VIP
- JB/T7688.1-2008冶金起重机技术条件第1部分:通用要求.pdf VIP
- 中储粮-内环流控温储粮技术标准-2017.pdf VIP
- 电竞场馆建设规范.pdf VIP
- LST-粮油储藏 内环流储粮技术规程.pdf VIP
- JGJ215-2010:建筑施工升降机安装、使用、拆卸安全技术规程.pdf VIP
- 入党志愿书(全电子版).pdf VIP
原创力文档


文档评论(0)