Which of the following can be inserted in main?
public class Outer { class Inner { } public static void main(String[] args) { // INSERT CODE HERE } }
Inner()
;Inner()
;Inner()
;Outer()
.Inner()
;Outer()
.new Inner()
;Inner()
;E.
This is a member inner class.
It needs to be created using an instance of the outer class.
The syntax looks weird, but it creates an object of the outer class and then an object of the inner class from it.