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

1. You will be given two end points with two API's a. response: [ { "product_uid": "6447344", "unit_price": 15.63, "unit_price_measure": "kg", "unit_price_measure_amount": 1 }, b. response from another API: [ { "product_uid": "6447344", "product_type": "BASIC", "name": "Sainsbury's Skin on ASC Scottish Salmon Fillets x2 240g", "full_url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-responsibly-sourced-scottish-salmon-fillet-x2-240g" }, Task is: now you will have to get the response from these API's and map the response which is present in their requirement section. There is may be some calculations involved in it. 10 test cases pre generated, all must be passed. Important: you will need to write your own test cases ( which i failed due to lack of time because of terrible IDE from hackajob platform ) Overall the task was alright but writing in their IDE without auto formatting tools and behaviour of IDE is not similar to regular IDE's, I would say i would have done better if its in my local IDE. - Disappointed
avatar

Software Engineer - Java Developer

Interviewed at Sainsbury’s

3.6
Dec 22, 2024

1. You will be given two end points with two API's a. response: [ { "product_uid": "6447344", "unit_price": 15.63, "unit_price_measure": "kg", "unit_price_measure_amount": 1 }, b. response from another API: [ { "product_uid": "6447344", "product_type": "BASIC", "name": "Sainsbury's Skin on ASC Scottish Salmon Fillets x2 240g", "full_url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-responsibly-sourced-scottish-salmon-fillet-x2-240g" }, Task is: now you will have to get the response from these API's and map the response which is present in their requirement section. There is may be some calculations involved in it. 10 test cases pre generated, all must be passed. Important: you will need to write your own test cases ( which i failed due to lack of time because of terrible IDE from hackajob platform ) Overall the task was alright but writing in their IDE without auto formatting tools and behaviour of IDE is not similar to regular IDE's, I would say i would have done better if its in my local IDE. - Disappointed

Viewing 2501 - 2510 interview questions

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