Consider the following program:
class Outer {// w w w.j a v a 2 s .co m class Inner { public void print() { System.out.println("Inner: print"); } } } class Test { public static void main(String []args) { // Stmt#1 inner.print(); } }
Which one of the following statements will you replace in place of //Stmt#1
to make the program compile and run successfully to print "Inner: print" in console?
Inner()
;Inner()
;Outer()
.Inner()
;Outer()
.new Inner()
;d)