Dear all,
Here's what can be found in Complete
Java 2 Certification Study Guide, p.163, Chapter 5 (Flow Control, Exceptions, and Asseertions).
This example demonstrates that assertions are appropriate for checking preconditions in any method regardless of access, and for checking post-conditions in private methods
I believe this is wrong, and is supposed to be exactly the inverse:
This example demonstrates that assertions are appropriate for checking postconditions in any method regardless of access, and for checking pre-conditions in private methods
Am I right on this subject?
Thanks for your reponse,
Cyril.
SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287