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,885 java developer interview questions shared by candidates

They only know security part of the application. No real or tough java questions, because they are new to java. they did not mention web application security in their job description. But in the interview, they are asking only security for the java developer.
avatar

Lead Java Developer

Interviewed at XYPRO Technology

4.5
Oct 5, 2014

They only know security part of the application. No real or tough java questions, because they are new to java. they did not mention web application security in their job description. But in the interview, they are asking only security for the java developer.

Mostly, they ask you about concepts of Java programming, like how to protect a set of transactions that need to happen together and fail gracefully otherwise (no incomplete operation). They also ask you about your implementation, why not this or that alternative, etc.
avatar

Senior Java Developer

Interviewed at gohenry

3.7
Jun 13, 2022

Mostly, they ask you about concepts of Java programming, like how to protect a set of transactions that need to happen together and fail gracefully otherwise (no incomplete operation). They also ask you about your implementation, why not this or that alternative, etc.

Hackerrank - Knight moves for source to destination, Laundary bags disposal Interview Round #1 - Find 2nd largest Element in LogN time, Sort array of 0s and 1s in place, Calculate angle between hour and minute hand, Internal working of Concurrent HashMap, Reason(s) for inheritance not provided by Java (except the Diamond Problem)
avatar

Associate Java Developer

Interviewed at Goldman Sachs

3.7
Jun 10, 2021

Hackerrank - Knight moves for source to destination, Laundary bags disposal Interview Round #1 - Find 2nd largest Element in LogN time, Sort array of 0s and 1s in place, Calculate angle between hour and minute hand, Internal working of Concurrent HashMap, Reason(s) for inheritance not provided by Java (except the Diamond Problem)

Viewing 2111 - 2120 interview questions

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