About Question enthuware.ocpjp.v7.2.1563 :
Posted: Thu Aug 21, 2014 9:11 pm
I get that the correct answer is to throw a Runtime Exception. But shouldn't "The given code is syntactically incorrect." also be a correct answer? There's nothing syntactically wrong about using an assertion to check input in a public method is there? It's just not an appropriate use of assertions.