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

1)Assume Threaded Environment, what can go wrong in code and how to fix it. -your given a main, interface, and a global final static variable 2)Overriding ArrayList equal operator I believe? -Basically in main you add an object- array.add(new object(3,4)), then attempt to remove - array.remove(new object(3,4)). -You can't edit the main, so you have to override the equals operator in ArrayList in the class method 3)Overriding Hashmap equal operator and hashcode -Similar logic, you cant edit the main so edit the method. 4)Threading questions, basically a this.wait() -Did not get a good look at this question, but review your Operating Systems. Has to do with thread locking i believe (rusty myself here need to look over it) 5)Write out the ArrayList class. -Write out the ArrayList data structure -getsize -addElement -Remove Element -One more which I forgot -This question is actually very easy but a little time consuming, I did not get to it sadly
avatar

Java Server Engineer

Interviewed at Skillz

3
Oct 7, 2016

1)Assume Threaded Environment, what can go wrong in code and how to fix it. -your given a main, interface, and a global final static variable 2)Overriding ArrayList equal operator I believe? -Basically in main you add an object- array.add(new object(3,4)), then attempt to remove - array.remove(new object(3,4)). -You can't edit the main, so you have to override the equals operator in ArrayList in the class method 3)Overriding Hashmap equal operator and hashcode -Similar logic, you cant edit the main so edit the method. 4)Threading questions, basically a this.wait() -Did not get a good look at this question, but review your Operating Systems. Has to do with thread locking i believe (rusty myself here need to look over it) 5)Write out the ArrayList class. -Write out the ArrayList data structure -getsize -addElement -Remove Element -One more which I forgot -This question is actually very easy but a little time consuming, I did not get to it sadly

you get an automatic reply containing as assignment , that will take you couple of days to complete. then they reply something like....your CV does not match our desired skill set, that't it!!! (are you serious?!)
avatar

Senior Java/Back-end Developer

Interviewed at Jimdo

3.4
Jun 23, 2018

you get an automatic reply containing as assignment , that will take you couple of days to complete. then they reply something like....your CV does not match our desired skill set, that't it!!! (are you serious?!)

This is a much better description of what I heard from the girl of the interview. There are ducks. Ducks can fly and quack but in different ways. Make a design so that you can have all the ducks in the system with the different "flying modes" and "quack modes".
avatar

Java Software Engineer

Interviewed at KAYAK

4.4
Dec 18, 2014

This is a much better description of what I heard from the girl of the interview. There are ducks. Ducks can fly and quack but in different ways. Make a design so that you can have all the ducks in the system with the different "flying modes" and "quack modes".

Viewing 1201 - 1210 interview questions

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