Design Principles

SOLID principles

Open-Closed Principle with Example

Learn the open-closed principle with a Java report writer example. Add a report format through an interface and understand what still needs to change.

SOLID Principles in Java With Examples

Learn the five SOLID principles with Java examples and diagrams. Understand responsibilities, extension, substitution, interfaces and dependency direction.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.