Java Software Engineer Interview Questions

3,072 java software engineer interview questions shared by candidates

How would you create an immutable object in Java? How do you feel about the type system of Java vs Javascript? What is a relational database? When would you use a nosql database instead of sql? What is MERN? What is a CDN, why would you use it? What is an ORM? When would you not use an ORM like Hibernate? What does Spring framework provide that core Java does not? Why use Mockito? What is the React lifecycle?
avatar

Java Software Engineer

Interviewed at LSEG (London Stock Exchange Group)

3.6
Aug 19, 2022

How would you create an immutable object in Java? How do you feel about the type system of Java vs Javascript? What is a relational database? When would you use a nosql database instead of sql? What is MERN? What is a CDN, why would you use it? What is an ORM? When would you not use an ORM like Hibernate? What does Spring framework provide that core Java does not? Why use Mockito? What is the React lifecycle?

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 2331 - 2340 interview questions

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