About Question com.enthuware.ets.scjp.v6.2.182 :
Posted: Sun Nov 04, 2012 8:52 am
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()
}
}
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()
}
}