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

Aptitude questions: (1)A number of friends decided to go on a picnic and planned to spend Rs. 96 on eatables. Four of them, however, did not turn up. As a consequence, the remaining ones had to contribute Rs. 4 each extra. The number of those who attended the picnic was (2)Suresh started a business with Rs.20,000. Kiran joined him after 4 months with Rs.30,000. After 2 months, Suresh withdrew Rs.5,000 of his capital and 2 more months later, Kiran brought in Rs.20,000 more. What should be the ratio in which they should share their profits at the end of the year? (3)A man borrows Rs. 20,000 at 10% compound interest. At the end of every year he pays Rs. 2000 as part repayment. How much does he still owe after three such installments? (4)Three taps A, B and C can fill a tank in 12, 15 and 20 hours respectively. If A is open all the time and B and C are open for one hour each alternately, the tank will be full in (5)2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was? (6)coding-decoding reasoning (7)blood relations Technical Interview: They are asking in deep not only just basic questions so thoroughly prepare well for the basic concepts (1)String (2)Garbage collection
avatar

Java Software Engineer

Interviewed at CRMIT Solutions

3.4
Sep 7, 2017

Aptitude questions: (1)A number of friends decided to go on a picnic and planned to spend Rs. 96 on eatables. Four of them, however, did not turn up. As a consequence, the remaining ones had to contribute Rs. 4 each extra. The number of those who attended the picnic was (2)Suresh started a business with Rs.20,000. Kiran joined him after 4 months with Rs.30,000. After 2 months, Suresh withdrew Rs.5,000 of his capital and 2 more months later, Kiran brought in Rs.20,000 more. What should be the ratio in which they should share their profits at the end of the year? (3)A man borrows Rs. 20,000 at 10% compound interest. At the end of every year he pays Rs. 2000 as part repayment. How much does he still owe after three such installments? (4)Three taps A, B and C can fill a tank in 12, 15 and 20 hours respectively. If A is open all the time and B and C are open for one hour each alternately, the tank will be full in (5)2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was? (6)coding-decoding reasoning (7)blood relations Technical Interview: They are asking in deep not only just basic questions so thoroughly prepare well for the basic concepts (1)String (2)Garbage collection

You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are restricted to only 2 uses. Find the heavier ball.
avatar

Java

Interviewed at HCLTech

3.5
Feb 20, 2017

You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are restricted to only 2 uses. Find the heavier ball.

Viewing 1511 - 1520 interview questions

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