About Question com.enthuware.ets.scjp.v6.2.295 :
Posted: Sat Jan 06, 2018 6:16 am
I think the wording of the commentary for this question is inaccurate.
The commentary for the 4th option
says
Code: Select all
class Outsider{
public class Insider{ }
}
public class TestClass{
public static void main(String[] args){
Outsider os = new Outsider();
// 1 insert line here
}
}
Code: Select all
Insider in = Outsider.new Insider();
but that's not the reason this option is wrong. If Insider were static, the syntax would beOutsider.new Insider() is wrong as well because Insider is not static;
Code: Select all
Outsider.Insider in = new Outsider.Insider();