hi: when i use assertion and after asssertion i do any stuff like System.out.print , if the assertion condition is false it will make an error does the code after assertion(System.out...) run probably after the error or the error appear and not complete code after assertion
When an assertion error is thrown, the stack trace and optional text are printed and then execution stops. More on assertions in Chapter 5 of "Coplete Java 2 Certification".
- Phil
Consultant to SCJP team.<br />Co-designer of SCJD exam.<br />Co-author of "Complete Java 2 Certification Study Guide".<br />Author of "Ground-Up Java".
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, the permaculture playing cards