Sr Java Developer Interview Questions

5,585 sr java developer interview questions shared by candidates

L1 round : 1. guess the output of a code snippet 2. find first non-repeating character from an input string (how many different ways you can solve it?) 3. Design an online food delivery system 4. Create a book class and ensure no duplicate books are added to a collection. The uniqueness of a book is determined by its title and its author. L2 round: 1. Two coding questions related to array and hashmaps. 2. Another follow up question on the same problem but was asked to solve using java 8 stream api. 3. Core java 4. scenario based 5. basics of springboot
avatar

Senior Java Developer

Interviewed at Capgemini

4.2
Jul 29, 2024

L1 round : 1. guess the output of a code snippet 2. find first non-repeating character from an input string (how many different ways you can solve it?) 3. Design an online food delivery system 4. Create a book class and ensure no duplicate books are added to a collection. The uniqueness of a book is determined by its title and its author. L2 round: 1. Two coding questions related to array and hashmaps. 2. Another follow up question on the same problem but was asked to solve using java 8 stream api. 3. Core java 4. scenario based 5. basics of springboot

Q1. Spring Security - JWT & AuthO Q2. How many methods to establish the communications between microservices? Q3. Difference between Kafka and RabbitMQ. Q4. How to deploy an application to EC2? Q5. What is Docker and explain some of its commands. Q6. What is Kubernetes and explain some of its commands. Q7. Which microservices design patterns have you used in your application? Q8. What are design patterns? Q9. What is the output of 2.0/0.0? Q10. There are N resources and N threads. You need to assign each thread to each resource so that there shouldn’t be a Thread DeadLock condition. Q11. Difference between Servlets and Common Gateway Interface(CGI). Q12. Difference between Hibernate and JDBC. Q13. Difference between Clustered and non-clustered Image. Q14. Explain the Single-row & Multi-row function. Q15. How many types of indexes are there and explain. Q16. If there is no Foreign Key in between two tables then how will you fetch the data? Q17. Difference between Self-join and Equi-join. Q18. Difference between JRE and JIT and explain. Q19. There is a Junior developer who committed and pushed the faulty 100s of lines of code without telling anyone. You got to after weeks of this incident happening. How will you tackle the situation and what are your future actions? Q20. You have pulled from a source branch and got some merge conflicts. You want to keep your changes. How will you resolve merge conflicts?
avatar

Senior Java Developer

Interviewed at Inspiron Labs

3.8
Mar 11, 2025

Q1. Spring Security - JWT & AuthO Q2. How many methods to establish the communications between microservices? Q3. Difference between Kafka and RabbitMQ. Q4. How to deploy an application to EC2? Q5. What is Docker and explain some of its commands. Q6. What is Kubernetes and explain some of its commands. Q7. Which microservices design patterns have you used in your application? Q8. What are design patterns? Q9. What is the output of 2.0/0.0? Q10. There are N resources and N threads. You need to assign each thread to each resource so that there shouldn’t be a Thread DeadLock condition. Q11. Difference between Servlets and Common Gateway Interface(CGI). Q12. Difference between Hibernate and JDBC. Q13. Difference between Clustered and non-clustered Image. Q14. Explain the Single-row & Multi-row function. Q15. How many types of indexes are there and explain. Q16. If there is no Foreign Key in between two tables then how will you fetch the data? Q17. Difference between Self-join and Equi-join. Q18. Difference between JRE and JIT and explain. Q19. There is a Junior developer who committed and pushed the faulty 100s of lines of code without telling anyone. You got to after weeks of this incident happening. How will you tackle the situation and what are your future actions? Q20. You have pulled from a source branch and got some merge conflicts. You want to keep your changes. How will you resolve merge conflicts?

Viewing 3611 - 3620 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 5,585 interview questions and reports from Sr java developer interviews. Prepare for your interview. Get hired. Love your job.