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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

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

Post by ETS User »

Hi,
It looks like in this snippet(first option in the question) there is a small error-missing "new" before AssertionError():

void assertTest(Object obj)
{
assert obj != null : throw AssertionError();
}


maybe it should be:

void assertTest(Object obj)
{
assert obj != null : throw new AssertionError();
}

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. This has now been fixed. It is still a wrong option though for the reason mentioned.

thanks for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests