网站大量收购独家精品文档,联系QQ:2885784924

北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two).doc

北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two).doc

  1. 1、本文档共11页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two)

北航《java语言与面向对象程序设计》在线作业二(The northern Java language and object-oriented programming online homework two) The northern Java language and object-oriented programming online homework two First, a radio question 1. after the execution of the following statement sequence, the value of K is (). Int, m=3, n=6, k=0; while ((m++) (- n)) ++k; A. 0 B. 1 C. 2 D. 3 The correct answer: B 2., the int type public member variable MAX_LENGTH, which remains constant 100, defines the statement of this variable as () A. public int MAX_LENGTH=100 B. final int MAX_LENGTH=100 C., public, const, int, MAX_LENGTH=100 D., public, final, int, MAX_LENGTH=100 The correct answer: D 3. in Java, the escape character that represents the newline character is () A. \n B. \f C.n D. \dd The correct answer: A 4. in the call of the following construction methods, the correct is (). A. calls in a general way B. is called directly by the user C. can only be invoked automatically via New D. is called by the system The correct answer: C 5. in the following options, the legal assignment statement is () A. a = = 1; B. + + i; C. a=a + 1= 5; D. y = int (I); The correct answer: B The difference between a 6. character stream and a byte stream is () The number of bytes each A. reads is different B. the former is buffered, and the latter is not C. the former is block read and write, and the latter is byte read and write D. two are not different, can be used interchangeably The correct answer: C 7. a set of keywords used to define access control for class members is () A., class, float, double, public B., float, Boolean, int, long C., char, extends, float, double D., public, private, protected The correct answer: D 8. if a member variable in a class can be accessed by the same package, what constraint does it use?. A. private B. public C. protected D. no modifier The correct answer: D 9. listen to events and process events A. is done by Listener B. is completed by the components registered at the corresponding event L

文档评论(0)

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

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

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档