Check that you can trace chained exceptions down to the root cause, use assert (-ea) and jdb appropriately, log lazily via JUL / System.Logger without leaking newlines or secrets, and write clean dependency-free tests.
More lessons in Complete Core Java