博彦科技(北京)有限公司武汉分公司Java高级软件工程师.doc

博彦科技(北京)有限公司武汉分公司Java高级软件工程师.doc

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
博彦科技(北京)有限公司武汉分公司Java高级软件工程师

选择题 1:关于垃圾收集的哪些叙述是对的。 A.程序开发者必须自己创建一个线程进行内存释放的工作。 B.垃圾收集将检查并释放不再使用的内存。 C.垃圾收集允许程序开发者明确指定并立即释放该内存。 D.垃圾收集能够在期望的时间释放被java对象使用的内存。 2: Select?valid?identifier?of?Java:?? Select valid identifier of Java: A.%passwd B.3d_game C.$charge D.this 3: What?will?be?the?result?of?executing?the?following?code?? ?? ?? public?static?void?main(String?args[]) ?? { ?? ???char?digit?=?a; ?? ???for?(int?i?=?0;?i??10;?i++) ?? ???{ ?? ?????switch?(digit) ?? ?????{ ?? ???????case?x?: ?? ???????{ ?? ?????????int?j?=?0; ?? ?????????System.out.println(j); ?? ???????} ?? ???????default?: ?? ???????{ ?? ???????int?j?=?100; ?? System.out.println(j); ?? ???????} ?? ?????} ?? ??} ?? ??int?i?=?j; ?? ??System.out.println(i); ?? }? ?? ?? Choices:?? What will be the result of executing the following code? public static void main(String args[]) { char digit = a; for (int i = 0; i 10; i++) { switch (digit) { case x : { int j = 0; System.out.println(j); } default : { int j = 100; System.out.println(j); } } } int i = j; System.out.println(i); } Choices: A.100 will be printed 11 times. B.The code will not compile because the variable i cannot be declared twice within the main() method. C.The code will not compile because the variable j cannot be declared twice within the switch statement. D.None of these. 4:A class design requires that a member variable should be accessible only by same package, which modifer word should be used? A.protected B.public C.no modifer D.private 5:以下的C程序代码片段运行后C和d的值分别是多少 Int a =1,b =2; Int c,d; c =(ab)a; d =(ab)a; A.0,0 B.0,1 C.1,0 D.1,1 6: What?will?happen?when?you?attempt?to?compile?and?run?the?following?code?? ?? ?? class?Base? ?? ?? { ?? ?? int?i?=?99;? ?? ?? public?void?amethod() ?? ?? { ?? ?? ???????System.out.println(Base.amethod()); ?? ?? ?????} ?? ?? ?????Base() ?? ?? { ?? ?? ?????amethod(); ?? ?? ?????} ?? ?? }? ?? ?? public?class?Derived?ext

文档评论(0)

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

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

1亿VIP精品文档

相关文档