Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.182 :

Posted: Sun Nov 04, 2012 8:52 am
by ETS User
Is there a bug ? Option new C() is shown as correct. This does not compile. It is missing the ;

Which of the given options if put at //1 will correctly instantiate objects of various classes defined in the following code?


public class TestClass
{
public class A
{
}
public static class B
{
}
public static void main(String args[])
{
class C
{
}
new C()
}
}

Re: About Question com.enthuware.ets.scjp.v6.2.182 :

Posted: Sun Nov 04, 2012 9:12 am
by admin
You are right. There should be a semi colon. This has now been fixed.

thank you for your feedback!