black

SCJP程序员认证考试

登录

单项选择题

You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?()  

A. public
B. private
C. protected
D. transient
E. default access

相关考题

单项选择题 public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (Exception ex) {  System.out.print(“C”);  }  finally {  System.out.print(“B”);  }  System.out.print(“D”);  }  public static void badMethod() {  throw new Error();  }  }  What is the result?()

多项选择题 public class X {  public X aMethod() { return this;}  }  public class Y extends X {  }  Which two methods can be added to the definition of class Y?()

单项选择题 Whichfragmentisanexampleofinappropriateuseofassertions?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2