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

1. Write an algorithm to sort an array into two part so the average of always come same. e.g array = {0,2,1,5,7,9} to [0,5,7] and [2,1,9] for both it is -4... This is the first question which itself is confusing. i asked not clear explain it then they have given new 3,19,7,4,6,40,25,8 but not explained what to do... 2. Write a sql query to find out the 3rd hiegst salary from a table Later one Guy came and changed the question and said that A dont use any inbuild function B If we ask 10th salary then your query should not change 3. we have a class which we will give third party but this class should not allow to create 100 object in JVM?
avatar

JAVA Developer

Interviewed at Bharti Airtel

3.8
Apr 11, 2015

1. Write an algorithm to sort an array into two part so the average of always come same. e.g array = {0,2,1,5,7,9} to [0,5,7] and [2,1,9] for both it is -4... This is the first question which itself is confusing. i asked not clear explain it then they have given new 3,19,7,4,6,40,25,8 but not explained what to do... 2. Write a sql query to find out the 3rd hiegst salary from a table Later one Guy came and changed the question and said that A dont use any inbuild function B If we ask 10th salary then your query should not change 3. we have a class which we will give third party but this class should not allow to create 100 object in JVM?

Viewing 1911 - 1920 interview questions

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