OCJP6.0认证考试实战手册-有解释.pdf

  1. 1、本文档被系统程序自动判定探测到侵权嫌疑,本站暂时做下架处理。
  2. 2、如果您确认为侵权,可联系本站左侧在线QQ客服请求删除。我们会保证在24小时内做出处理,应急电话:400-050-0827。
  3. 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.

文档评论(0)

wx171113 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档