Java Software Developer Interview Questions

4,195 java software developer interview questions shared by candidates

The interview was more of a discussion. The interviewed briefed about himself, the company and the upcoming project. Then it was my turn to talk about myself - like my motivation, the projects I had done etc., Finally, I was asked to demonstrate/explain the code I had written for the take-home assignment.
avatar

Software Engineer - Java Developer

Interviewed at Mphasis

3.4
May 26, 2021

The interview was more of a discussion. The interviewed briefed about himself, the company and the upcoming project. Then it was my turn to talk about myself - like my motivation, the projects I had done etc., Finally, I was asked to demonstrate/explain the code I had written for the take-home assignment.

R1-Screening: Detailed discussion on previous project, architecture, what design patterns used and follow-ups on them. R2-Technical: Query to find customers who placed more than 5 orders, From a list of integers, filter out even numbers, square them, and collect into a new list using Java Streams, How Hashmap works internally, Two Sum Optimal Solution. R3-Technical: How Polymorphism is achieved in Java, why overriding is called runtime polymorphism, what is composition, Explain SOLID design principles, Abstract Factory vs Factory , Singleton design pattern, Showed a code blocked and asked what changes I will make to make them adhere to SOLID principles, Comparator vs Comparable, Eager vs Lazy Loading, How to achieve Dependency Injection in Spring Boot, how to pass different profiles(dev,stage,prod) for your app (JVM arguments), Checked vs Unchecked exceptions, Try, finally block, Controller Advice, Lets say Method A calls Method B, How would you propagate any exception thrown from Method B to A, Hibernate questions, how would you resolve circular dependency, Optimistic vs Pessimisstic Lock, Different Methods to create Threads in Java, Lambda function to filter a List with id > 3 and sort them in decending order based on their names, Hashset vs Hashmap , Does hashset maintain insertion order, if no which Collection of Set can be used to maintain insertion order, can we achieve Multiple Inheritance in Java.
avatar

Software Engineer Java

Interviewed at OakNorth

3.9
Jan 7, 2026

R1-Screening: Detailed discussion on previous project, architecture, what design patterns used and follow-ups on them. R2-Technical: Query to find customers who placed more than 5 orders, From a list of integers, filter out even numbers, square them, and collect into a new list using Java Streams, How Hashmap works internally, Two Sum Optimal Solution. R3-Technical: How Polymorphism is achieved in Java, why overriding is called runtime polymorphism, what is composition, Explain SOLID design principles, Abstract Factory vs Factory , Singleton design pattern, Showed a code blocked and asked what changes I will make to make them adhere to SOLID principles, Comparator vs Comparable, Eager vs Lazy Loading, How to achieve Dependency Injection in Spring Boot, how to pass different profiles(dev,stage,prod) for your app (JVM arguments), Checked vs Unchecked exceptions, Try, finally block, Controller Advice, Lets say Method A calls Method B, How would you propagate any exception thrown from Method B to A, Hibernate questions, how would you resolve circular dependency, Optimistic vs Pessimisstic Lock, Different Methods to create Threads in Java, Lambda function to filter a List with id > 3 and sort them in decending order based on their names, Hashset vs Hashmap , Does hashset maintain insertion order, if no which Collection of Set can be used to maintain insertion order, can we achieve Multiple Inheritance in Java.

Viewing 1331 - 1340 interview questions

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