杭州天丽技有限公司面试笔试题.docVIP

  • 1
  • 0
  • 约1.49万字
  • 约 6页
  • 2017-09-05 发布于浙江
  • 举报
杭州天丽技有限公司面试笔试题

选择题 1: 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?extends?Base ?? ?? { ?? ?? int?i?=?-1; ?? ?? ??????? ?? ?? public?static?void?main(String?argv[]) ?? ?? { ?? ?? ?????Base?b?=?new?Derived(); ?? ?? ???????System.out.println(b.i); ?? ?? ???????b.amethod(); ?? ?? ?????}? ?? ?? ?????public?void?amethod() ?? ?? { ?? ?? ???????Syst

文档评论(0)

1亿VIP精品文档

相关文档