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. Difference between concurrent map and synchronized map ? No implementation details , just the difference 2. Volatile variables and synchornization 3. final classes 4. Callable and future and what they do. 5. Write a java program for finding out the first non repeating character in string. Example you have a string abcdeabc. Here the output must be d. Prepare this question, they will definitely ask you. 6. Read a file for a sequence of input string and print in in some order to output file. 7. You have a list of integers using an arraylist, find first if it contains duplicates, if doesn't contain duplicates, then return false else return true. Second part was to find that the duplicate elements. I am sure the interviewer might not be very sharp, however when you divide an array size by 2 , he was asking to round off an integer, which would be anyway a round off figure. I didn't understand what he wanted to prove , he is dumb or he is sharp !!!
avatar

Java Developer

Interviewed at Morgan Stanley

3.9
Apr 8, 2018

1. Difference between concurrent map and synchronized map ? No implementation details , just the difference 2. Volatile variables and synchornization 3. final classes 4. Callable and future and what they do. 5. Write a java program for finding out the first non repeating character in string. Example you have a string abcdeabc. Here the output must be d. Prepare this question, they will definitely ask you. 6. Read a file for a sequence of input string and print in in some order to output file. 7. You have a list of integers using an arraylist, find first if it contains duplicates, if doesn't contain duplicates, then return false else return true. Second part was to find that the duplicate elements. I am sure the interviewer might not be very sharp, however when you divide an array size by 2 , he was asking to round off an integer, which would be anyway a round off figure. I didn't understand what he wanted to prove , he is dumb or he is sharp !!!

Viewing 2021 - 2030 interview questions

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