《Java程序设计》模拟试题一.docxVIP

  • 3
  • 0
  • 约1.53万字
  • 约 22页
  • 2021-12-04 发布于江苏
  • 举报
《Java 程序设计》课程 试卷 1 一、单选题(每题 1 分,共 12 分) 给定下面的代码片段: String str = null; if ((str != null) (str.length() 10)) { System.out.println(more than 10); 4) } else if ((str != null) (str.length() 5)) { System.out.println(less than 5); 7) } 8) else { System.out.println(end); } 哪些行会导致错误? A、 line 1 B、 line 2

文档评论(0)

1亿VIP精品文档

相关文档