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

1. Output of:- public class Recursion { public int abc(int x){ if (x > 30) return x; System.out.println(x); x=x+abc(x+10); System.out.println(x); return x; } public static void main(String[] args) { new Recursion().abc(6); } } 2. Some question on Locker 3. Some question on brackets (){}[]. I attempted starting 2. 1st one was correct. 2nd one was having run time error when i checked at my place. Got rejected in the coding test but any ways it was a good experience.
avatar

Java Developer

Interviewed at OnMobile

3.6
Feb 9, 2017

1. Output of:- public class Recursion { public int abc(int x){ if (x > 30) return x; System.out.println(x); x=x+abc(x+10); System.out.println(x); return x; } public static void main(String[] args) { new Recursion().abc(6); } } 2. Some question on Locker 3. Some question on brackets (){}[]. I attempted starting 2. 1st one was correct. 2nd one was having run time error when i checked at my place. Got rejected in the coding test but any ways it was a good experience.

The first interview should be with a recruiter that asks about your family and your children. The second interview is with a group. The third with an architect that has no university degree .The fourth … Second interview: How should I tackle involvement in taking on development of legacy code. If I use Test Driven Development and how. If I use tests as documentation. If I use or know Domain Driven Development . How do I update my technical and general knowledge. Which are my preferred books on testing of software. My hobbies

Java Developer (Software Engineer)

Interviewed at Lequa

2.2
Apr 12, 2017

The first interview should be with a recruiter that asks about your family and your children. The second interview is with a group. The third with an architect that has no university degree .The fourth … Second interview: How should I tackle involvement in taking on development of legacy code. If I use Test Driven Development and how. If I use tests as documentation. If I use or know Domain Driven Development . How do I update my technical and general knowledge. Which are my preferred books on testing of software. My hobbies

The task was to build a command line utility to search for string. The input is text file (where every line is a new string) and some prefix. The program should print the shortest word in a text file that starts with the given prefix. The main idea was to build a perfect data structure to store the strings from text file and to make a look up. It is supposed that text file could be very big and looking for a string in a set of strings is not suitable.
avatar

Java Developer

Interviewed at Voxer

3.5
Oct 10, 2017

The task was to build a command line utility to search for string. The input is text file (where every line is a new string) and some prefix. The program should print the shortest word in a text file that starts with the given prefix. The main idea was to build a perfect data structure to store the strings from text file and to make a look up. It is supposed that text file could be very big and looking for a string in a set of strings is not suitable.

Viewing 621 - 630 interview questions

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