SDE-2 Java backend: the questions and the scenarios
Reported, not verified
These are shared by candidates, not verified by us, and not endorsed or confirmed by the companies named. Everything else on this site is checked on every build; this section is reported rather than verified, and it is kept separate for exactly that reason. Process varies by team, by interviewer and by year, so treat a list as one loop that happened, not as a syllabus you can expect to be repeated.
Source: Circulated on LinkedIn as an SDE-2 / senior backend preparation list, 2026, framed around ₹25–30 LPA roles. One person's synthesis of many interview experiences, not a record of a single loop.
13 of 29 of these have a deep-dive answer on this site. The rest are not covered yet and are marked so — a gap you can see is more useful than one you cannot.
3 of them are scenarios rather than recall questions, and they are highlighted below. Worth separating, because they are a different thing to prepare: a recall question has an answer you can revise, while a scenario is asking whether you can reason about a production problem and defend the tradeoff you picked.
Core Java
5/10 answered here- 01
How does ConcurrentHashMap achieve thread safety?
- 02
wait() vs sleep() vs join()
Not covered on this site yet.
- 03
Explain the JVM class loading mechanism.
Not covered on this site yet.
- 04
equals() vs ==, and why hashCode() matters
What is the contract between hashCode() and equals()? — 8 min
- 05
How does garbage collection work?
Not covered on this site yet.
- 06
volatile vs synchronized
What does volatile guarantee, and what does it not? — 12 min
- 07
Deep copy vs shallow copy
Not covered on this site yet.
- 08
Checked vs unchecked exceptions
What is the difference between checked and unchecked exceptions? — 10 min
- 09
ThreadLocal, with real-world use cases
Not covered on this site yet.
- 10
Scenario
You are building a payment gateway where thousands of transactions run in parallel. How would you ensure thread-safe balance updates?
What does volatile guarantee, and what does it not? — 12 min
Spring Boot
2/8 answered here- 11
@Bean vs @Component
Not covered on this site yet.
- 12
Spring AOP, with real production examples
- 13
How do circular dependencies happen, and how are they resolved?
Why is constructor injection preferred over field injection? — 9 min
- 14
JWT vs OAuth2
Not covered on this site yet.
- 15
How does Spring Boot auto-configuration work?
Not covered on this site yet.
- 16
application.properties vs application.yml
Not covered on this site yet.
- 17
ApplicationContext vs BeanFactory
Not covered on this site yet.
- 18
Scenario
Design an order processing workflow where inventory, payment and invoice generation execute independently, without tight coupling.
Not covered on this site yet.
Hibernate and JPA
4/6 answered here- 19
get() vs load()
What are the fetch types, and which is the default for each mapping? — 11 min
- 20
First-level vs second-level cache
Not covered on this site yet.
- 21
Optimistic vs pessimistic locking
What are the isolation levels, and what does each permit? — 13 min
- 22
What is dirty checking?
What is dirty checking, and why did my entity save without a save() call? — 11 min
- 23
Explain the entity lifecycle states.
Not covered on this site yet.
- 24
Scenario
Multiple users update the same product stock simultaneously. How would you prevent inconsistent data?
What are the isolation levels, and what does each permit? — 13 min
System design
2/5 answered here- 25
Design an e-commerce order tracking system.
Not covered on this site yet.
- 26
Design a rate limiter.
- 27
Design a URL shortener.
Not covered on this site yet.
- 28
Design a distributed key-value store such as Redis.
Not covered on this site yet.
- 29
Design a user authentication system.
How should a password be stored? — 11 min
What this list is worth
Somebody’s view of what is worth revising, not a record of an interview. Useful as a checklist of topics you should be able to explain; useless as a guarantee that these are the questions you will get. For patterns across many interviews rather than a single list, the company-type breakdowns are the better guide.
Every other page on this site compiles and runs its code on each deploy and diffs the output against what the page claims. This page cannot work that way — it reports what someone else said — so it is kept in its own section and labelled on every view.