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();
}
About Question com.enthuware.ets.scjp.v6.2.311 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.311 :
You are right. This has now been fixed. It is still a wrong option though for the reason mentioned.
thanks for your feedback!
thanks for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 51 guests