Skip to content
javabypankaj
HomeLibraryPopularCommunity
15
Design Patterns & LLD
10 topics · 57 questions
1SOLID Principles0/552DRY, KISS, YAGNI & Other Principles0/43Creational: 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
2 of 10 topics
Topics
1SOLID Principles0/55
2DRY, KISS, YAGNI & Other Principles0/44
3Creational: 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

DRY, KISS, YAGNI & Other Principles

Design Patterns & LLD·Topic 2 of 10·4 questions
Q1The DRY ("Don't Repeat Yourself") principle, how to follow it, and applying it carefully in microservices

Every rule or piece of knowledge should live in exactly one place, so a change is a single safe edit – but only unify things that are truly the same knowledge.

Read Answer
Q2KISS and YAGNI principles, balancing them against DRY, and real YAGNI violations

KISS says prefer the simplest thing that works, YAGNI says do not build it until you actually need it, and both guard against over-engineering.

Read Answer
Q3Time complexity and space complexity, with common Big-O examples

Time complexity is how running time scales with input size, space complexity is how extra memory scales, and Big-O names the growth rate ignoring constants.

Read Answer
Q4How to create an immutable class in Java (final class, private final fields, no setters, defensive copies)

Make the class final, all fields private final and set once, no setters, and defensively copy anything mutable coming in or going out.

Read Answer
Previous · Topic 1SOLID Principles5 questionsNext · Topic 3Creational: Singleton, Factory, Builder, Prototype12 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary