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

1. The first one is of online test with questions like reversing linked list, merging two linked list and a string question along with MCQ. Completed that in 40 minutes. Got shortlisted. 2. First round of interview starts with HTML,CSS and Javascript. a) What's new in HTML5? b) CSS Box model and properties c) Javascript basics d) Then linkedlist question, sum of two numbers represented by linked lists e) reverse a phrase without using tokenizers Answered all of them, interviewer expected that I would take time for coding questions, but I completed them in less than 5 mins. 3) Second round is of approx 2 hours. The interviewer asked me so many questions on DS, Algorithms, SQL, Threading etc... Answered all of them. He is super impressed with me. 4) Third round is with manager, he gave me a question like this. I tried my level best, then asked some theory questions, what is Heap Memory and Program Memory, How is java class loader works. Implement a queue a) Enqueue happens at 100 messages/sec with one thread. b) Dequeue happens at 10 messages/sec with 5 threads. c) At any time the number of unprocessed messages pushed to backlog. When the number of messages in backlog increases 1000, stop incoming messages until number of messages in backlog decreases to 500.
avatar

Java Developer

Interviewed at Coviam

4.1
Nov 19, 2017

1. The first one is of online test with questions like reversing linked list, merging two linked list and a string question along with MCQ. Completed that in 40 minutes. Got shortlisted. 2. First round of interview starts with HTML,CSS and Javascript. a) What's new in HTML5? b) CSS Box model and properties c) Javascript basics d) Then linkedlist question, sum of two numbers represented by linked lists e) reverse a phrase without using tokenizers Answered all of them, interviewer expected that I would take time for coding questions, but I completed them in less than 5 mins. 3) Second round is of approx 2 hours. The interviewer asked me so many questions on DS, Algorithms, SQL, Threading etc... Answered all of them. He is super impressed with me. 4) Third round is with manager, he gave me a question like this. I tried my level best, then asked some theory questions, what is Heap Memory and Program Memory, How is java class loader works. Implement a queue a) Enqueue happens at 100 messages/sec with one thread. b) Dequeue happens at 10 messages/sec with 5 threads. c) At any time the number of unprocessed messages pushed to backlog. When the number of messages in backlog increases 1000, stop incoming messages until number of messages in backlog decreases to 500.

Viewing 2221 - 2230 interview questions

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