OOP pillars and UML, SOLID with before/after code, DRY/KISS/YAGNI/Law of Demeter and GRASP, all major creational, structural and behavioural design patterns, a step-by-step LLD interview method with concurrency, and fully coded case studies (parking lot, elevator, vending machine, Splitwise, BookMyShow, rate limiter, logger, games).
Low-level design (LLD, also called object-oriented design or "machine coding") interviews ask you to turn a fuzzy problem — design a parking lot — into clean, extensible, working classes in 45–90 minutes. Interviewers look for: clarifying requirements, identifying the right entities and responsibilities, applying principles (SOLID) and patterns where they genuinely help, handling concurrency and edge cases, and code that is easy to extend.
Chapters
OOP & UML — encapsulation, abstraction, inheritance, polymorphism, composition, class relationships and UML notation.
SOLID — each principle with a violation and a refactor.
Design principles — DRY, KISS, YAGNI, Law of Demeter, composition over inheritance, cohesion and coupling, GRASP, dependency injection.
The four pillars (encapsulation, abstraction, inheritance, polymorphism) with code, interfaces vs abstract classes, composition vs inheritance, overloading vs overriding, class relationships (association, aggregation, composition, dependency, realization) and how to read and draw UML class and sequence diagrams.
Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation and Dependency Inversion — each with a realistic violation, the refactor, how to spot it in code review, and when applying it is overkill.
DRY, KISS, YAGNI, Law of Demeter, composition over inheritance, high cohesion and low coupling, separation of concerns, GRASP responsibility assignment, dependency injection, immutability, fail-fast, tell-don't-ask, and designing for testability.
Singleton (and its thread-safe implementations and pitfalls), Factory Method, Simple Factory and registries, Abstract Factory, Builder, Prototype and Object Pool — with intent, structure, Java/Python code and when not to use them.
Adapter, Decorator, Facade, Proxy, Composite, Bridge and Flyweight — how to compose objects into larger structures, with code, real-world examples (Java I/O streams, middleware, ORMs, API gateways) and how to tell similar patterns apart.
Strategy, Observer, Command, State, Template Method, Chain of Responsibility, Iterator, Mediator, Visitor and Memento — how objects collaborate and distribute responsibility, with Java/Python code and the LLD problems where each one shows up.
A step-by-step process for LLD and machine-coding rounds (requirements → entities → relationships → APIs → patterns → code → concurrency → extensions), how to manage time, thread-safety techniques for in-memory designs, testing your design live, and the mistakes that sink candidates.
Three of the most-asked LLD problems solved end to end — requirements, class diagram, key flows, design decisions, thread-safe Java code, and the follow-up questions interviewers ask.
Expense sharing with split strategies and debt simplification, movie ticket booking with seat holds and concurrency, an extensible logging framework, a pluggable rate limiter, and tic-tac-toe / snake-and-ladder game designs — each with requirements, design decisions and Java/Python code.