Loading…
Object-oriented design + machine coding rounds
LLD interviews test your ability to translate requirements into clean, extensible object models under time pressure. Work through parking lot, elevator, vending machine, and Splitwise with class-level diagrams, SOLID-driven structure, and the trade-offs interviewers probe — patterns apply in any OO language.
How to use this hub
2 modules cover low-level design (lld) end-to-end. Open the first module, use Open question 1 on its landing page, and use Next at the bottom of each answer to stay in order.
Revision sheet
~12 min · 5 sections · save as PDF
Low-level design (LLD) interview questions test whether you can take an ambiguous prompt ("design a parking lot", "design a cab-booking system") and produce a clean class diagram in 30 minutes — using OOP correctly, identifying entities and relationships, applying the right design patterns, and writing code that compiles. This page covers the LLD prompts that recur most often, with the classes, the patterns used, and the Java code skeletons.
LLD = take a fuzzy prompt, produce a clean class diagram in 30 minutes:
The interview surface for this module breaks into these focus areas:
Revision sheet
~12 min · 5 sections · save as PDF
Design patterns interview questions test whether you can apply the Gang-of-Four classics to real Java code — Singleton (and why it is a smell), Factory and Abstract Factory, Builder (with the Java records angle), Strategy, Observer, Decorator, Adapter, Proxy, and the patterns Spring itself uses (Template Method, IoC, AOP). Each answer leads with the problem the pattern solves, the Java implementation, and the trade-offs (when not to use it).
Three families — name the family before the pattern.
Spring uses many by default — DI ≈ inversion-of-control, AOP ≈ proxy, JdbcTemplate ≈ template method.
The interview surface for this module breaks into these focus areas:
"This problem is a classic
from the family — it gives me . The trade-off is , and I'd skip the pattern when ."