Which of these lines when placed in line 1 will create an instance of class Inner? (select all that apply).
class Outer {
public class Inner { }
Inner getInner(){ return new Inner(); }
public Outer() { }
}
public class Starter {
public static void main(String[] args) {
//1
}
}
Login in to like
Login in to comment