Skip to content
javabypankaj
HomeLibraryPopularCommunity
15
Design Patterns & LLD
10 topics · 57 questions
1SOLID Principles0/52DRY, KISS, YAGNI & Other Principles0/443Creational: Singleton, Factory, Builder, Prototype0/12124Structural: Adapter, Decorator, Proxy, Facade0/665Behavioral: Strategy, Observer, Command, State, Template0/12126Circuit Breaker & Saga0/117Patterns in Spring & JDK0/228LLD Approach & Modeling0/229LLD Problems: Parking Lot, Elevator, Chess, etc.0/121210Design Patterns Overview0/11
1SOLID Principles52DRY, KISS, YAGNI & Other Principles43Creational: Singleton, Factory, Builder, Prototype124Structural: Adapter, Decorator, Proxy, Facade65Behavioral: Strategy, Observer, Command, State, Template126Circuit Breaker & Saga17Patterns in Spring & JDK28LLD Approach & Modeling29LLD Problems: Parking Lot, Elevator, Chess, etc.1210Design Patterns Overview1
10 topics57 Qs0%
01Core Java17002OOP3203Collections6704Exception Handling2805Concurrency & Multithreading12706Java Streams, Lambda & Functional Programming32807Spring & Spring Boot2608Transactions3209JPA & Hibernate6910Microservices19411Kafka & Messaging9112DevOps, CI/CD & Tooling13313Database & SQL14114REST API & Web4015Design Patterns & LLD5716Advanced Java7117Coding Problems: DSA49218AWS & Cloud4119Data Engineering19420QA, Testing & SDET4121System Design3522Security2023Behavioral / HR: STAR Method37
10Topics
57Questions
0%Complete
1 of 10 topics
Topics
1SOLID Principles0/55
2DRY, KISS, YAGNI & Other Principles0/443Creational: Singleton, Factory, Builder, Prototype0/12124Structural: Adapter, Decorator, Proxy, Facade0/665Behavioral: Strategy, Observer, Command, State, Template0/12126Circuit Breaker & Saga0/117Patterns in Spring & JDK0/228LLD Approach & Modeling0/229LLD Problems: Parking Lot, Elevator, Chess, etc.0/121210Design Patterns Overview0/11

SOLID Principles

Design Patterns & LLD·Topic 1 of 10·5 questions
Q1Each SOLID principle with violations and fixes, the SRP–DIP clash, and SOLID over-engineering

SOLID is five rules: one job per class, extend without modifying, subtypes must substitute, small focused interfaces, and depend on abstractions not concretions.

Read Answer
Q2Explain the five SOLID principles with a violation and fix for each

SOLID means one job per class, extend by adding not editing, subtypes must not break callers, keep interfaces small and role-based, and depend on abstractions you inject.

Read Answer
Q3What is the Strategy pattern and how does it enforce the Open/Closed Principle

Strategy makes algorithms interchangeable behind one interface, chosen at runtime, so adding a new algorithm is a new class, never an edit to old code.

Read Answer
Q4Why "don't over-engineer" is a core LLD skill, and answering "how would you extend this?" with the Open/Closed Principle

Build the simplest correct design and refactor when needed, then extend by adding a new class rather than modifying existing code, which is the Open/Closed Principle.

Read Answer
Q5Which SOLID principles matter most in LLD?

In LLD, SRP keeps classes focused, OCP adds behaviour without edits, LSP guarantees substitutability, and DIP makes everything testable through injected abstractions.

Read Answer
Next · Topic 2DRY, KISS, YAGNI & Other Principles4 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary