Design Principles

Single Responsibility Principle

The single responsibility principle (SRP) states that a software component (in general, a class) must have one and only one responsibility.

A Comprehensive Guide to SOLID Principles

Learn SOLID principles in Java with examples. Single Responsibility Principle, Open Closed Principle, Liskov’s Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle.

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.