advancedSOLID Principles in Practice

Can a class with only a single method still violate the Single Responsibility Principle?

Tests whether you know SRP is about reasons to change, not method count — a single method can still mix multiple concerns.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

Can a class with only a single method still violate the Single Responsibility Principle?

Next Step

Continue to When does implementing the Open/Closed Principle become over-engineering?← Back to all Spring Boot & Microservices questions