As per http://docs.oracle.com/javase/7/docs/te ... ssert.html
assertions require only a runtimr library change , not a jvm change. That is also whhy old code that uses assert as user defined token will work with new jvm.
If you like our products and services, please help us by posting your review here.
Besides the 'assert' keyword, new methods are added in java.lang.Class and java.lang.ClassLoader classes.
i didn`t get that statement, explain it more.
(as i understand Assertions require changes at the API level.- mean that you must modify you method api, thats wrong)
can you explain:
Besides the 'assert' keyword, new methods are added in java.lang.Class and java.lang.ClassLoader classes.
Option #4: Code that uses Assertions cannot be run on version below 1.4
In the book I'm studying, it said that if you use the assert identifier, on 1.3 it will compile but with warnings.
How should one interpret "uses Assertions" for the exam? Does it only refer to the assert as a keyword?
I thought this question was in general about assertions, whether in the old style with an identifier or with the newer style with the keyword. Does the capital "A" in Assertions refers then only to the keyword style?
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.
If you like our products and services, please help us by posting your review here.
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.
Ok good, that'll come in handy for the exam!
Btw, when do you ever sleep, Paul, you posted this after 3AM!?!