Page 1 of 1

About Question enthuware.ocpjp.v7.2.1322 :

Posted: Tue Oct 30, 2012 6:03 am
by D3x!
Q: Assertions require changes at the JVM level.
No change is required in the JVM for supporting assertions.
but it is marked as a correct answer?
Q: Assertions can be enabled or disabled at runtime.
By using the switches, -ea and -da or -enableassertions or -disableassertions
but it is not marked as a correct answer?
Q: Code that uses Assertions cannot be run on version below 1.4
Because of the 'assertion' keyword.
but is not marked as a correct answer?
Q: Code written for JDK version 1.3 cannot be compiled under JDK version 1.4
It can be compiled by using -source flag: javac -source 1.3 classname.java
but it is marked as a correct answer?

Re: About Question enthuware.ocpjp.v7.2.1322 :

Posted: Tue Oct 30, 2012 6:14 am
by admin
Because the question asks you to select options that are NOT correct.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1322 :

Posted: Tue Oct 30, 2012 6:36 am
by D3x!
ahhhhh.

Re: About Question enthuware.ocpjp.v7.2.1322 :

Posted: Sun May 12, 2013 2:11 pm
by aspire_jp
Hi,
the keyword is 'assert' not 'assertion' as referred to in the explanation.
Thanks!

Re: About Question enthuware.ocpjp.v7.2.1322 :

Posted: Wed May 15, 2013 6:48 am
by admin
You are right, aspire_jp. This has now been fixed.

thank you for your feedback!