When something breaks in production or local runs, Java tells you the whole story in stack traces—if you know how to trace from the bottom 'Caused by:' upward. Combined with assert (-ea) internal invariants and jdb, you can isolate bugs without guessing.
More lessons in Complete Core Java