S
Stefan Ram
This is really a page as good as documentation can be:
http://docs.oracle.com/javase/7/docs/technotes/guides/language/assert.html
. It explains all important aspects of the assert statement.
Then it ends with a huge FAQ section that really answers every
question one can possibly have about the assert statement.
One can even learn from it notions such as »package-tree
semantics« versus »traditional package semantics« or facts
such as »a class's constructors and methods can run prior to
its initialization« (»its« = »the class'«).
I think the exhaustive documentation of Java with the JLS,
the Java SE documentation, the tools' documentation, the
Java tutorial and such technotes is a strength of Java,
especially since it all comes from the owner of the Java
brand itself.
http://docs.oracle.com/javase/7/docs/technotes/guides/language/assert.html
. It explains all important aspects of the assert statement.
Then it ends with a huge FAQ section that really answers every
question one can possibly have about the assert statement.
One can even learn from it notions such as »package-tree
semantics« versus »traditional package semantics« or facts
such as »a class's constructors and methods can run prior to
its initialization« (»its« = »the class'«).
I think the exhaustive documentation of Java with the JLS,
the Java SE documentation, the tools' documentation, the
Java tutorial and such technotes is a strength of Java,
especially since it all comes from the owner of the Java
brand itself.