Java Software Developer Interview Questions

4,194 java software developer interview questions shared by candidates

1. What are the features of Java8 2. Coding Q on java 8 3. Code asked on some of digonal array 4. Question asked on spring, spring, boot and Microservices 5. Some questions on project related 6.Some questions on Sql and asked to write 2 querys on join and group by
avatar

Java Software Developer

Interviewed at Infosys

3.6
Feb 17, 2025

1. What are the features of Java8 2. Coding Q on java 8 3. Code asked on some of digonal array 4. Question asked on spring, spring, boot and Microservices 5. Some questions on project related 6.Some questions on Sql and asked to write 2 querys on join and group by

What is the difference between @Component, @Service, and @Repository in Spring Boot? Why do we need separate stereotypes if they all behave similarly for component scanning? 2. How does Spring handle dependency injection? Explain constructor injection vs setter injection and which one is recommended and why. 3. What is the difference between EntityManager and Hibernate Session? When would you use one over the other? 4. How does Spring Boot auto-configuration work? Explain the role of spring.factories and @EnableAutoConfiguration. 5. Explain the lifecycle of a Spring Bean. What are @PostConstruct and @PreDestroy, and when would you use them?
avatar

Java Software Developer

Interviewed at Infosys

3.6
Nov 10, 2025

What is the difference between @Component, @Service, and @Repository in Spring Boot? Why do we need separate stereotypes if they all behave similarly for component scanning? 2. How does Spring handle dependency injection? Explain constructor injection vs setter injection and which one is recommended and why. 3. What is the difference between EntityManager and Hibernate Session? When would you use one over the other? 4. How does Spring Boot auto-configuration work? Explain the role of spring.factories and @EnableAutoConfiguration. 5. Explain the lifecycle of a Spring Bean. What are @PostConstruct and @PreDestroy, and when would you use them?

Viewing 1051 - 1060 interview questions

Glassdoor has 4,194 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.