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()
	}
}
			
			
									
									
						About Question com.enthuware.ets.scjp.v6.2.182 :
Moderators: Site Manager, fjwalraven
- 
				admin
 - Site Admin
 - Posts: 10443
 - Joined: Fri Sep 10, 2010 9:26 pm
 - Contact:
 
Re: About Question com.enthuware.ets.scjp.v6.2.182 :
You are right. There should be a semi colon. This has now been fixed.
thank you for your feedback!
			
			
									
									
						thank you for your feedback!
Who is online
Users browsing this forum: Google [Bot] and 26 guests