Java Developer Interviews

Java Developer Interview Questions

In your interview for a java developer position, be prepared to answer technical questions that test your understanding of Java basics. Interviewers may also ask open-ended questions to assess your coding and problem-solving abilities. Prepare for non-technical questions that focus on time management, interpersonal communication, and work ethic.

Top Java Developer Interview Questions & How to Answer

Question 1

Question #1: What is the difference between HashTable and HashMap in Java?

How to answer
How to answer: Interviewers use technical questions to assess your formal training and understanding of the Java programming language. Use your answer to demonstrate your communication skills. Even if you have been coding for some time, it can be helpful to review Java basics before your interview.
Question 2

Question #2: Write a program to determine if 243 is an Armstrong number.

How to answer
How to answer: Interviewers use open-ended questions to test your coding skills. This question allows the employer to assess your ability to solve a problem using a Java algorithm. Explain your thinking process as you use a code editor or whiteboard to solve the problem.
Question 3

Question #3: How do you produce quality code when you have several Java projects to complete at once?

How to answer
How to answer: Java developers often juggle multiple projects at the same time. Interviewers use questions such as this to test your time management and organizational skills. Employers are also trying to assess your commitment to quality work. If you have experience as a developer, include examples from your work history that demonstrate high-quality work and effective time management.

30,900 java developer interview questions shared by candidates

In coding test, one question was to find the count of unique characters in the given string. Other question was to get the country code of the given country from the given URI where you can pass country name name & get some data. Then you will need to parse that data to fetch the country code field data. The manager was looking for some 10+ years experienced person who designed & built the enterprise level applications from scratch, means some person who can confidently fake his/her intelligence & can fit to DBS policies to fool the people. He wanted to know that design. In short, its all fake show-off here that they do exceptional work but reality will be total opposite.
avatar

Senior Java Developer/Lead

Interviewed at DBS Bank

3.8
Jul 30, 2022

In coding test, one question was to find the count of unique characters in the given string. Other question was to get the country code of the given country from the given URI where you can pass country name name & get some data. Then you will need to parse that data to fetch the country code field data. The manager was looking for some 10+ years experienced person who designed & built the enterprise level applications from scratch, means some person who can confidently fake his/her intelligence & can fit to DBS policies to fool the people. He wanted to know that design. In short, its all fake show-off here that they do exceptional work but reality will be total opposite.

As long as you follow STAR and understand the concepts, you will make it far. The problem solving question was the most difficult, primarily because it was over the phone. It was a 3 part question and I didn't get the entire problem correct, but I had the correct approach.
avatar

Entry Level Java Developer

Interviewed at Verizon

3.6
Mar 15, 2014

As long as you follow STAR and understand the concepts, you will make it far. The problem solving question was the most difficult, primarily because it was over the phone. It was a 3 part question and I didn't get the entire problem correct, but I had the correct approach.

What is exception? when should occur NullPointer exception?write a program for NullPointerException? explain about singleton design pattern? Write a thread safe Singleton class. can we write a class in scriptlet? Expalain abou Hashset?
avatar

Java Developer

Interviewed at Dell Technologies

3.7
Jul 23, 2016

What is exception? when should occur NullPointer exception?write a program for NullPointerException? explain about singleton design pattern? Write a thread safe Singleton class. can we write a class in scriptlet? Expalain abou Hashset?

Viewing 2591 - 2600 interview questions

Glassdoor has 30,900 interview questions and reports from Java developer interviews. Prepare for your interview. Get hired. Love your job.