Number Of Page View:100,000+/Months
LOGIN |New User


Do not use assert expressions that can cause side effects!
The following would be a very bad idea:
public void doStuff() {
assert (modifyThings());
// continues on
public boolean modifyThings() {
x++ = y;
return true;
The rule is: An assert expression should leave the program in the same state it was in
before the expression!