Java Software Developer Interview Questions

3,069 java software developer interview questions shared by candidates

Technical Round: Q1. Explain the Spring Security. Q2. Explain the flow of a Rest API call from frontend to backend and response back to frontend. Q3. Explain JWT token. Q4. Define Filters and Segmentation in Spring Security. Q5. How one microservices authenticate another microservice with jwt? Q6. What is a functional interface? Q7. Give an example of a java interface which uses a functional interface. Q8. Write a code to implement Runnable using lambda. Q9. Which is springboot default server and How to use another server in srpingboot? Q10. What are profiles and how to use them? Q11. How is bean Injection working? Q12. How to inject a specific bean of the same object? Q13. How to set up a discovery server? Like Eureka Q14. What is the use of @Primary annotation? Q15. Which method can we use to check if a service is up or not? Q16. How would you externalize a microservice? Q17. What is the default port of springboot? Q18. What is an optional class and its use? Q19. Optional.Of() vs Optional.ofNullable() Q20. Write sql query to return 2nd highest salary. Q21. What is a Rest template?
avatar

Java Software Developer

Interviewed at Infosys

3.6
Mar 11, 2025

Technical Round: Q1. Explain the Spring Security. Q2. Explain the flow of a Rest API call from frontend to backend and response back to frontend. Q3. Explain JWT token. Q4. Define Filters and Segmentation in Spring Security. Q5. How one microservices authenticate another microservice with jwt? Q6. What is a functional interface? Q7. Give an example of a java interface which uses a functional interface. Q8. Write a code to implement Runnable using lambda. Q9. Which is springboot default server and How to use another server in srpingboot? Q10. What are profiles and how to use them? Q11. How is bean Injection working? Q12. How to inject a specific bean of the same object? Q13. How to set up a discovery server? Like Eureka Q14. What is the use of @Primary annotation? Q15. Which method can we use to check if a service is up or not? Q16. How would you externalize a microservice? Q17. What is the default port of springboot? Q18. What is an optional class and its use? Q19. Optional.Of() vs Optional.ofNullable() Q20. Write sql query to return 2nd highest salary. Q21. What is a Rest template?

Viewing 2351 - 2360 interview questions

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