Skip to the page

30 questions · 11 rounds

Java full-stack developer interview questions

Questions from real Java full-stack rounds, grouped by the round that asks them. Open one for the follow-ups, what a strong answer covers and the traps. Then say your answer out loud: see the Java full-stack mock interview.

Part 1 · 16 questions

Technical screen

  1. call vs apply vs bind

    JS core · Concept · Mid

    Difference between call, apply and bind? Give a real use case for each.

  2. Fix an infinite useEffect loop

    Hooks & effects · Write code · Mid

    This page hammers our API and freezes. Find the bug. (code)

  3. DELETE, TRUNCATE and DROP

    SQL querying · Concept · Mid

    What's the difference between DELETE, TRUNCATE and DROP? If you had to empty a 200-million-row log table in production, which would you use?

  4. Standalone components or NgModules

    Angular core · Trade-off · Mid, Senior

    Standalone components or NgModules: what's the real difference? You have a 300-component app built on NgModules. Do you migrate, and how?

  5. Print odd and even numbers with two threads

    Java concurrency · Build it · Mid, Senior

    Write a Java program with two threads: one prints odd numbers and the other prints even numbers, so that together they print 1 to 20 in order.

  6. Does Java pass objects by reference?

    Core Java and OOP · Write code · Mid

    What does this print? Then tell me: does Java pass objects by reference or by value? (code)

  7. Keys and the index-as-key bug

    React fundamentals · Scenario · Mid

    We render this list, then insert a new item at the top. The text in the inputs shifts to the wrong rows and focus jumps. Why, and how do you fix it? (code)

  8. Angular: a 5,000-row table freezes the page

    Angular in production · Scenario · Mid, Senior

    The transactions page shows up to 5,000 rows. Scrolling stutters, and typing in the filter freezes the page for two seconds. How do you approach it?

  9. Clustered and non-clustered indexes

    Indexes and query performance · Concept · Mid, Senior

    What's the difference between a clustered and a non-clustered index? How does MySQL's InnoDB store a table compared with PostgreSQL?

  10. Lazy or eager loading

    JPA and Hibernate · Trade-off · Mid

    What are the default fetch types for @ManyToOne and @OneToMany in JPA? Many teams make every association lazy. Do you agree? Why?

  11. Event propagation order

    Output prediction · Write code · Mid, Senior

    Clicking the button: what order do the logs appear in? (code)

  12. Constructor or field injection

    Spring Boot core · Trade-off · Mid, Senior

    Half the code base uses @Autowired on fields, the other half uses constructors. A new joiner asks which one to use. What do you tell them, and why?

  13. A @Transactional method that doesn't roll back

    Spring in production · Scenario · Mid, Senior

    Finance reports refunds marked 'completed' in our database, but the money never left. The refund code is @Transactional, and the logs show the bank call failed. Why didn't it roll back?

  14. How a Resilience4j circuit breaker works

    Spring microservices · Concept · Mid, Senior

    Explain how a circuit breaker works in Resilience4j: its states, what makes it open, and what callers get while it's open.

  15. Your hardest Java production issue

    Java in production · Your experience · Mid, Senior, Lead

    Tell me about the hardest Java production issue you've debugged. What did you see, what did you check, and what was the root cause?

  16. Optimistic or pessimistic locking

    Transactions and locking · Trade-off · Mid, Senior

    When would you use optimistic locking with a version column, and when pessimistic locking with SELECT … FOR UPDATE? Give me one real example of each.

Part 2 · 3 questions

Tech stack deep dive

  1. How your service gets AWS credentials

    AWS for developers · Concept · Mid, Senior

    Your service runs on AWS and needs to read files from S3 and send messages to SQS. How does the code get AWS credentials, and why shouldn't you just put an access key in its environment…

  2. Build a sliding-window rate limiter in Lua

    Redis in depth · Build it · Mid, Senior

    Write a Redis-based rate limiter for our OTP API: at most 5 OTP requests per phone number in any 10-minute window, across all API servers. Write the Lua script and the code that calls it…

  3. A ConfigMap change nobody picked up

    Kubernetes for developers · Scenario · Mid, Senior

    You changed the payment timeout in the service's ConfigMap from 30 to 10 seconds and applied it. An hour later the pods still use 30 seconds. A teammate says, 'Just delete the pods.'…

Part 3 · 1 question

Machine coding

  1. Autocomplete / typeahead component

    Machine coding · Build it · Mid

    Create an autocomplete component that queries an API as the user types, with keyboard navigation and highlighting of the matched text.

Part 4 · 3 questions

Full-stack system design

  1. Autocomplete / typeahead (system-level)

    Frontend system design · Design · Senior

    Design a reusable autocomplete component that product teams across the company will use for search, user pickers and address lookup.

  2. Cache-aside, write-through or write-back

    Design building blocks · Trade-off · Mid, Senior

    Our product catalogue API is slow, and someone says 'just add Redis'. Which caching strategy would you use: cache-aside, write-through or write-back? And how do you keep the cache from…

  3. Design a UPI payments app backend with idempotency

    India-scale design · Design · Senior, Lead

    Design the backend of a UPI payments app like PhonePe or Google Pay. A user scans a shop's QR code, enters an amount and their PIN, and pays. Money must never move twice.

Part 5 · 1 question

Low-level design

  1. Movie ticket booking with seat holds (BookMyShow)

    LLD problems · Design · Mid, Senior, Lead

    Design the booking part of a movie ticket app like BookMyShow. A user picks a show, sees the seat map, selects seats, and the seats are held for them for a few minutes while they pay. If…

Part 6 · 1 question

Production incident

  1. API p99 latency jumps after a deploy

    Production incidents · Scenario · Mid, Senior

    We deployed the orders service at 4 pm. Since then, p99 latency on the order details API went from about 300 milliseconds to 4 seconds. p50 has barely moved, and the error rate is still…

Part 7 · 1 question

Techno-managerial

  1. A junior's pull request is weak

    Techno-managerial · Scenario · Senior, Lead

    A junior developer raises a PR for a new form. It works, but it has copy-pasted blocks, no tests, a 400-line component, and state in five places. The release is in two days. How do you…

Part 8 · 1 question

DSA

  1. Valid parentheses (LeetCode 20)

    DSA · Build it · Mid, Senior

    Given a string of brackets, ()[]{}, return whether it's balanced.

Part 9 · 1 question

Resume deep dive

  1. "Architected / built from scratch" — the whiteboard test

    Resume deep-dive · Your experience · Senior, Lead

    Draw the architecture of the system you 'architected'. Where does the data and state live? How does auth work? How is it built and deployed?

Part 10 · 1 question

Behavioural / HM

  1. Code-review and debugging rounds

    Leadership & behavioural · Write code · Senior

    "Here's a teammate's pull request in the stack you work in. Review it like a real PR." Or: "This app has bugs and four failing tests. Fix them while thinking aloud."

Part 11 · 1 question

Recruiter / HR round

  1. Background verification

    HR & recruiter · Your experience · Mid, Senior, Lead

    Our BGV partner will verify your employment history, including UAN service history, relieving letters and education. Is there anything we should know before we start?

Reading is not answering. Say it out loud.

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview