单项选择题
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?()