Part 2
2 chapters
Principles (SOLID, Martin)
The five SOLID principles in modern Java terms: SRP/OCP/LSP first, then ISP/DIP and dependency injection without a framework.
Chapter 3
SOLID I: SRP / OCP / LSP
A freight-billing engine split along three SOLID principles: one reason to change per type under the Single Responsibility Principle, an InvoiceRule abstraction new rules can satisfy without an edit under the Open/Closed Principle, and a discount rule refined without breaking its parent's contract under Liskov Substitution.
Chapter 4
SOLID II: ISP / DIP and dependency injection without a framework
Splitting a fat interface into focused role interfaces, inverting the dependency between a high-level policy and a low-level detail, and wiring the resulting object graph by hand in idiomatic Java with no DI container.