单项选择题
A. public
B. private
C. protected
D. transient
E. default access
单项选择题 int i = 1,j = 10; do { if(i>j) { break; } j--; } while (++i <5); System.out.println(“i =” +i+” and j = “+j); What is the result?()
多项选择题 class A { A() { } } class B extends A { } Which two statements are true?()
单项选择题 interface Animal { void soundOff(); } class Elephant implements Animal { public void soundOff() { System.out.println(“Trumpet”); } } class Lion implements Animal { public void soundOff() { System.out.println(“Roar”); } } class Alpha1 { static Animal get( String choice ) { if ( choice.equalsIgnoreCase( “meat eater” )) { return new Lion(); } else { return new Elephant(); } } } Which compiles?()