Java Managerial Round Questions & Answers
35 questions for the managerial round stage — 3 easy, 21 medium, 11 hard.
About the managerial round round
The managerial round is usually with a hiring manager or team lead. It mixes real-work scenarios, prioritisation and stakeholder questions with behavioural questions about ownership, conflict and learning.
Tips for the managerial round round
- Use the STAR format for every story: Situation, Task, Action, Result.
- Show trade-offs: what you chose, what you gave up and why.
- Be honest about mistakes and focus on what you changed afterwards.
- Ask the manager about team goals and how success is measured in the role.
A query is fast in development but takes 8 seconds in production. How do you investigate?
Show answer
Implement the Builder pattern for a User class with many optional fields.
Show answer
Production shows Connection is not available, request timed out after 30000ms from HikariCP. What do you check?
Show answer
What are records in Java and when should you use them?
Show answer
After moving to virtual threads, throughput did not improve and some requests stalled. What could cause it?
Show answer
How do you make sure database changes are released safely?
Show answer
What are the key patterns used in microservices built with Spring Boot?
Show answer
You need to remove items from an ArrayList while looping over it. How do you do it safely?
Show answer
Your Spring Boot service takes 40 seconds to start in Kubernetes and pods get killed. How do you fix it?
Show answer
Users get LazyInitializationException when the API returns an entity. What is happening?
Show answer
Exceptions are being swallowed with empty catch blocks in your codebase. How would you fix this?
Show answer
How do you take a thread dump and a heap dump of a running Java process?
Show answer
You need to process a 5 GB file using streams without running out of memory. How?
Show answer
Should a service layer throw checked or unchecked exceptions? Defend your choice.
Show answer
How do you mentor junior developers on your team?
Show answer
Users report the app is slow for the first few minutes after every deployment. Why might this happen?
Show answer
Two users booking the last seat both succeed. How do you prevent double booking?
Show answer
Write a Spring Data JPA repository method that fetches orders with items to avoid N+1.
Show answer
Use CountDownLatch to wait for three worker threads to finish.
Show answer
A @Transactional method is not rolling back after an exception. What could be wrong?
Show answer
What is the difference between reduce() and collect()?
Show answer
Write a record with validation in its compact constructor.
Show answer
Tell me about a time you found and fixed a difficult production bug in a Java application.
Show answer
How would you split a monolith into microservices?
Show answer
A log file shows a NullPointerException only for some users. How do you debug it?
Show answer
Configure a Resilience4j circuit breaker on a client call in Spring Boot.
Show answer
Compare String, StringBuilder and StringBuffer.
Show answer
What is the difference between lazy and eager loading?
Show answer
A team member chains Optional.get() everywhere and gets NoSuchElementException. What do you suggest?
Show answer
A HashMap shared by many threads sometimes loses updates. How do you fix it?
Show answer
Your REST API returns stack traces to clients when errors happen. How do you design proper error handling?
Show answer
A stream pipeline that updates a shared ArrayList in forEach gives random results with parallel(). Why?
Show answer
What is the difference between HashMap and ConcurrentHashMap?
Show answer
You have to process tasks in order of priority. Which collection do you use?
Show answer
Frequently asked questions
What happens in the Java managerial round round?
The managerial round is usually with a hiring manager or team lead. It mixes real-work scenarios, prioritisation and stakeholder questions with behavioural questions about ownership, conflict and learning.
How do I clear the managerial round round?
Use the STAR format for every story: Situation, Task, Action, Result. Show trade-offs: what you chose, what you gave up and why. Be honest about mistakes and focus on what you changed afterwards.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.