Ed McCormic Source on GitHub
All specs

Spring Boot and Java deep dives

Java fundamentals workbook

Exercises with tests for shallow vs deep copy and abstract classes vs interfaces, including the diamond conflict.

View code on GitHub

Goals

  • Turn two InfoWorld articles into exercises with failing tests to fix
  • Copying: Product/Category shallow vs deep copy, including a clone() version of deepCopy
  • Abstraction: abstract class vs interface challenges, plus a diamond-conflict exercise

AI build notes

Claude wrote the exercises first and only showed the answers when asked, then applied them and ran the tests.

Changelog

  • 2026-09-28: Built