Exceptions & validation in Java: interview exercises

Exceptions & validation in Java: 6 test-checked interview exercises (A custom checked exception), each beside a worked example, with tests as you go. Free.

  1. A custom checked exception
  2. Parse with a fallback
  3. try-with-resources
  4. Collect every validation error
  5. Translate an exception
  6. Retry an action

Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.

More Java topics

All Java exercises ยท Other languages and frameworks