The new usage of command line switches (-ea -da -esa -dsa) must have required changes to vm launch.No change is required in the JVM for supporting assertions.
Were there not also actual JVM changes then too?
Moderator: admin
The new usage of command line switches (-ea -da -esa -dsa) must have required changes to vm launch.No change is required in the JVM for supporting assertions.
Ok good, that'll come in handy for the exam!admin wrote:The phrase "Using assertions" implies using the assertions feature of Java language and not using assert as an identifier.
"Using assert as an identifier" means using assert as an identifier and not as a keyword.
That is why option 4 is incorrect.The phrase "Using assertions" implies using the assertions feature of Java language and not using assert as an identifier. "Using assert as an identifier" means using assert as an identifier and not as a keyword.
I mean can we paraphrase above statement as below:That is why this option is correct because Code written for JDK version 1.3 CAN be compiled under JDK version 1.4 using the -source flag.
javac -source1.3 AssertTest.java // code being executed on 1.4 but was written for 1.3 (compiles fine) ( though use of -source 1.3 is optional) --(1)"That is why this option is correct because Code written for JDK version 1.3 CAN be compiled under JDK version 1.4 using the -source flag but use of
-source flag wasn't mandatory in JDK version 1.4 to specifically compile code written for JDK version 1.3 since by default such relaxation exited "only" in JDK version 1.4 release to allow for compatibility reasons"
Users browsing this forum: No registered users and 7 guests