Modern Java: interview exercises

Modern Java: 6 test-checked interview exercises (Text blocks and formatted, A switch expression), each beside a worked example, with tests as you go. Free.

  1. Text blocks and formatted
  2. A switch expression
  3. Pattern matching for switch
  4. Record patterns
  5. Sequenced collections
  6. Immutable copies

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