What is the Single Responsibility Principle (SRP) in Java, and can you give an example?
The SRP is about breaking down large classes into smaller ones so that each class can do multiple things at once.
Thatâ€™s incorrect. The SRP is about a class having only one responsibility, not multiple responsibilities.
Can you describe what 'responsibility' means in the context of SRP?