About Question com.enthuware.ets.scjp.v6.2.311 :
Posted: Mon Oct 03, 2011 2:49 pm
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();
}
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();
}