What interviewers test in a Java developer interview
Most loops include a core Java round, a coding round on data structures, a Spring Boot and microservices round, and for experienced candidates a design or production-support discussion. Panels check whether you understand how things work underneath, not just how to use an annotation.
Expect follow-ups like what happens if two threads call this method at once, or how would this behave with a million records. Answer with the internals and a concrete example.
- Core Java: OOP, immutability, exceptions, generics and collections
- Concurrency: synchronization, locks, ExecutorService, CompletableFuture and virtual threads
- JVM: heap and stack, garbage collectors, memory leaks and tuning flags
- Spring: IoC, bean scopes, Spring Boot auto-configuration, Spring Security basics
- Data and services: JPA, transactions, REST, Kafka and resilience patterns
Technical topics to revise
Revise with code. Write a small Spring Boot service with a REST endpoint, a JPA repository and a unit test, and be ready to explain every annotation in it.
- HashMap, ConcurrentHashMap, ArrayList versus LinkedList and TreeMap
- Streams, Optional, lambdas, records, sealed classes and pattern matching
- Virtual threads in Java 21 and when they help
- G1 and ZGC basics, heap dumps and thread dumps
- Spring Boot: @Transactional, profiles, actuator and exception handling
- Hibernate: N+1 queries, fetch types, caching and pagination
- Microservices: circuit breakers with Resilience4j, API gateways and Kafka consumers
- Testing: JUnit 5, Mockito and Testcontainers
How to structure your answers
For concept questions, give a one-line definition, explain the internals and finish with when you used it or a pitfall you hit. For coding, talk through your approach and complexity before writing code.
For project questions, describe the architecture briefly, your specific contribution and a measurable result, such as reducing p95 latency or cutting a batch job's run time.
How InterviewPlan AI helps you prepare
Java mock interviews ask core Java, Spring Boot and scenario questions and give feedback on depth and clarity. Coding help is available for practice problems, and Resume AI turns project descriptions into impact bullets.
In live technical interviews, Interview Copilot provides speaker-labelled transcription and resume-grounded answer drafts in under a second. Once you are hired, Java Job Support gives live expert-plus-AI help with tickets, code reviews and stand-ups in your first 90 days, at $5 per hour with 200 AI credits included.