Java Software Engineer Interview Questions

4,195 java software engineer interview questions shared by candidates

write a program for string reversal eg. if input is "abcd" then output should be: dcba why do we use enum when constants are there? Questions about the SpringBoot? Spring, SpringBoot, Hibernate, JDBC annotations Where do be mention the hibernate db connection details. Question on mvc architecture get, put, post methods Question on microservices Question on webservices Question on git commands Question on git: how to push the changes to upper stages like uat, and prod switch case vs if else which to use collection vs map list vs all types of maps hibernate questions hql what is dialect in hibernate junit annotations java 11 features java 8 features rest, oops concepts
avatar

Software Engineer - Java Developer

Interviewed at Infosys

3.6
Sep 24, 2022

write a program for string reversal eg. if input is "abcd" then output should be: dcba why do we use enum when constants are there? Questions about the SpringBoot? Spring, SpringBoot, Hibernate, JDBC annotations Where do be mention the hibernate db connection details. Question on mvc architecture get, put, post methods Question on microservices Question on webservices Question on git commands Question on git: how to push the changes to upper stages like uat, and prod switch case vs if else which to use collection vs map list vs all types of maps hibernate questions hql what is dialect in hibernate junit annotations java 11 features java 8 features rest, oops concepts

Swagger and frontend templates (when I specifically told him I am a backend engineer) Oauth and grant types. Streams. (String s ="JAVA") give non repeatable first character (J) output of this code: private static void doStuff() { for (int i = 0; i <= 5; i++) { doStuff(); // recursive call inside the loop } } public static void main(String[] args) { doStuff(); // initial call }
avatar

Java Software Engineer

Interviewed at Infosys

3.6
Sep 11, 2025

Swagger and frontend templates (when I specifically told him I am a backend engineer) Oauth and grant types. Streams. (String s ="JAVA") give non repeatable first character (J) output of this code: private static void doStuff() { for (int i = 0; i <= 5; i++) { doStuff(); // recursive call inside the loop } } public static void main(String[] args) { doStuff(); // initial call }

Viewing 3191 - 3200 interview questions

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