搜狐公司_java高级工程师笔试题跟答案.docxVIP

  • 9
  • 0
  • 约5.15千字
  • 约 8页
  • 2018-11-30 发布于湖北
  • 举报

搜狐公司_java高级工程师笔试题跟答案.docx

搜狐公司_java高级工程师笔试题跟答案

1:A class design requires that a member variable should be accessible only by same package, which modifer word should be used? A A.protected B.public C.no modifer D.private 2: What will happen when you attempt to compile and run the following code? B public class Static { static { int x = 5; } static int x,y; public static void main(String args[]) { x--; myMethod(); System.out.println(x + y + ++x); } public static void myMethod() { y = x++ + ++x; } } Choices: A.prints : 2 B.prints : 3 C.prints : 7 D.prints : 8 3: What will be the result of executing the follow

文档评论(0)

1亿VIP精品文档

相关文档