Java Software Developer Interview Questions

4,195 java software developer interview questions shared by candidates

1. Questions on java collections and algorithms complexity 2. Based on certain requirements propose design strategy of the problem. They wanted to see if i could find design pattern that I could propose for the given task(the pattern in question was decorator pattern)
avatar

Software Engineer - Java Developer

Interviewed at VMware

4.4
Aug 2, 2019

1. Questions on java collections and algorithms complexity 2. Based on certain requirements propose design strategy of the problem. They wanted to see if i could find design pattern that I could propose for the given task(the pattern in question was decorator pattern)

2 to 3 rounds 1. Java based questions Basics on OOPs, multithreading, exceptions and design patterns 2. Problem solving and system design based on role Difficulty level is not too much, but preparation is required
avatar

Software Engineer - Java Developer

Interviewed at Morgan Stanley

3.9
Sep 23, 2023

2 to 3 rounds 1. Java based questions Basics on OOPs, multithreading, exceptions and design patterns 2. Problem solving and system design based on role Difficulty level is not too much, but preparation is required

They asked questions on Java cocepts like : OOPS, Multithreading, Collections. They will show you code snippet, you have to tell the output and with that you will have to discuss the above topic in depth with interviewer. They will usually ask edge cases. Ex: What if we implement 2 interfaces having same name and same signature for a default method. How to solve this problem. Ex2: Why we can create constructor in abstract class but we cannot initialize it. Why java introduced this? Ex:3 What if we override equals method and hashcode method. What if we are returning same value from hashcode method and always returning false from equals method. Ex: 4 If in a class having two different methods with two synchronized blocks and two threads are accessing different methods, What will happen? who will wait?
avatar

Software Engineer - Java Developer

Interviewed at Morgan Stanley

3.9
Mar 31, 2022

They asked questions on Java cocepts like : OOPS, Multithreading, Collections. They will show you code snippet, you have to tell the output and with that you will have to discuss the above topic in depth with interviewer. They will usually ask edge cases. Ex: What if we implement 2 interfaces having same name and same signature for a default method. How to solve this problem. Ex2: Why we can create constructor in abstract class but we cannot initialize it. Why java introduced this? Ex:3 What if we override equals method and hashcode method. What if we are returning same value from hashcode method and always returning false from equals method. Ex: 4 If in a class having two different methods with two synchronized blocks and two threads are accessing different methods, What will happen? who will wait?

Coding questions: 1. Create a password from a string based on Prime indices. 2. Sum of digits of a number & throw a custom exception if it's a even number. 3. Sort employee objects based on employee ID. Other questions on basic java
avatar

Software Engineer - Java Developer

Interviewed at SpectraMedix

4.2
Mar 28, 2025

Coding questions: 1. Create a password from a string based on Prime indices. 2. Sum of digits of a number & throw a custom exception if it's a even number. 3. Sort employee objects based on employee ID. Other questions on basic java

Viewing 1561 - 1570 interview questions

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