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 your work ethic.

20,917 Java Developer interview questions shared by candidates

Top Java Developer Interview Questions & How to Answer

Here are three Java developer interview questions and tips on how to answer them:

Question No. 1: What is the difference between Hashtable and HashMap in Java?

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 No. 2: Write a program to determine if 243 is an Armstrong number.

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 No. 3: How do you produce quality code when you have several Java projects to complete at once?

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 organisational 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.

Top Interview Questions

Sort: Relevance|Popular|Date
Oracle
Software Engineer - Java Developer was asked...21 September 2023

two sum,three sum,closest sum,merge two sorted linkedlists, and in second round check cyclic dependency in a 2d array its a graph question

L4B Software

None None None None None None None None NoneNone None NoneNone None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None None

​Interswitch

Why are you best qualified for this role

Vitraya

Some questions on how JAVA handles the execution of a program. Also, for the final interview asked me to do an assessment that required me to write REST APIs using an Open NLP library for text extraction that was not even watched on Github

Urbanpro

Find all subsequence and match with one give sequence

Fujitsu

Share my internship experience and previous project/hackathon

Capgemini

JAVA spring boot hibernate angular

Aubay

Questions about differences in certain java classes (like list vs set for example), threads, solid, etc

Proxymity

What types of beans do you know and what do they use for?

Viewing 1 - 10 of 20,917 interview questions

See Interview Questions for Similar Jobs

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