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

The recruiter did an initial technical screening on the phone. The questions were multi choice type. He read the questions and then read the choices. There were about 10 questions. Pretty basic.A day later I was scheduled for the first round of phone interview which was an hour long technical assessment. The questions were simple. At the end of this interview I was asked to code a solution for a simple problem. There was a screen share so that the interviewer could look at my screen. A day later I got a call saying they'd want to schedule an on-site. I wasnot given the details as to how many rounds of interview to expect. I wasnot not even given a schedule that listed how long the individual interviews would go for. Was just told the interview would take 2-3 hours. A day before the interview I received an e-mail saying the interview time was pre-poned by like 2 hours. It was very unprofessional to inform me of pre-poning a day before. I had to take the day off at work. I had 2 rounds of interview on-site. For both the rounds there were 2 interviewers. The first round was just a resume walk through and a few behavioural questions. the second interview consisted of 2 parts 1. cognitive interview. 2. root cause analysis type. For the cognitive part, the interviewers would give you a question( like how many ice-creams are sold in US each year) and would want to see your approach for it. for the second part, they'd give you a problem and expect you to come up with the root cause for it.
avatar

Software Engineer-java

Interviewed at American Express

4.1
Jan 6, 2014

The recruiter did an initial technical screening on the phone. The questions were multi choice type. He read the questions and then read the choices. There were about 10 questions. Pretty basic.A day later I was scheduled for the first round of phone interview which was an hour long technical assessment. The questions were simple. At the end of this interview I was asked to code a solution for a simple problem. There was a screen share so that the interviewer could look at my screen. A day later I got a call saying they'd want to schedule an on-site. I wasnot given the details as to how many rounds of interview to expect. I wasnot not even given a schedule that listed how long the individual interviews would go for. Was just told the interview would take 2-3 hours. A day before the interview I received an e-mail saying the interview time was pre-poned by like 2 hours. It was very unprofessional to inform me of pre-poning a day before. I had to take the day off at work. I had 2 rounds of interview on-site. For both the rounds there were 2 interviewers. The first round was just a resume walk through and a few behavioural questions. the second interview consisted of 2 parts 1. cognitive interview. 2. root cause analysis type. For the cognitive part, the interviewers would give you a question( like how many ice-creams are sold in US each year) and would want to see your approach for it. for the second part, they'd give you a problem and expect you to come up with the root cause for it.

You are given a circular road with petrol pumps at regular intervals & you know the average of your car. Each petrol pump has given certain quantity of petrol. Now you need to find if you can complete that circle & from which point i.e. petrol pump you need to start.
avatar

Senior Java Engineer

Interviewed at Tide

4.5
Jul 10, 2020

You are given a circular road with petrol pumps at regular intervals & you know the average of your car. Each petrol pump has given certain quantity of petrol. Now you need to find if you can complete that circle & from which point i.e. petrol pump you need to start.

Viewing 111 - 120 interview questions

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