2008试题.docVIP

  • 18
  • 0
  • 约8.26千字
  • 约 10页
  • 2016-11-01 发布于天津
  • 举报
2008试题.doc

一.选择填空(选对得分,1分) Given: int []x= {1, 2,3,4, 5}; int y[] =x; System.out.println(y[2]); Which is true? A. Line 57 will print the value 2. B. Line 57 will print the value 3. C. Compilation will fail because of an error in line 55. D. Compilation will fail because of an error in line 56. Answer: B 2.Which?of?the?following?statements?are?true?? A.?methods?cannot?be?overriden?to?be?more?private? B.?static?methods?cannot?be?overloaded? C.?private?methods?cannot?be?overloaded? D.?an?overloaded?method?cannot?throw?exceptions?not?checked?in?the?base?class? Answer: D 4.Given: public class Test { publi

文档评论(0)

1亿VIP精品文档

相关文档