Skip to content

Java developer interview questions for employers, with scorecard

LiveRec EditorialUpdated

India context for employers using these java developer interview questions, central rules as of 30 Oct 2026.

Use these 12 questions to interview a java developer the same way every time. Ask all candidates the same questions, score each answer from 1 to 4 against the notes below, and decide on the total, not on first impressions. Pick 8 to 10 questions per interview.

At a glance

  • Match the questions to your java developer job description: one question per must-have.
  • Score each criterion right after the interview, before you talk to other interviewers.
  • Follow up with "What did you personally do?" to separate individual work from the team's.

Questions

#QuestionA good answer showsRed flags
1Explain the difference between an abstract class and an interface.Correct, with when to use eachMixes them up
2How does a HashMap work internally?Hashing, buckets, collision handlingSurface only
3What is the difference between checked and unchecked exceptions?Correct, with usage guidanceCannot explain
4Explain how threads share data and what can go wrong.Race conditions, synchronisation, concurrent collectionsUnaware
5How do you structure a REST API in Spring Boot?Controller, service, repository, validationOne class for everything
6What is dependency injection and why is it used?Decoupling, testingMemorised definition
7How would you design a query for a slow page?Index, explain plan, avoid N+1 queriesAdds hardware
8A service throws a NullPointerException in production. What do you do?Logs, reproduces, fixes and adds a testAdds a null check only
9Describe a design you built and what you would change.Honest trade-offsNo reflection
10How do you test your code?Unit and integration, mockingManual only
11Describe a code review comment that changed your approach.Open to feedbackDefensive
12What have you built in your spare time or at a previous job?Concrete project, own roleCannot explain the project

Scorecard (1 to 4)

ScoreMeaning
1Weak: no relevant example, or a red flag
2Partial: general or hypothetical answer, little evidence
3Good: a real, specific example that meets the standard
4Strong: specific, repeated evidence and clear reasoning
CriterionQuestionsWhat a 4 looks likeScore
Core Java1, 2, 3, 4Correct on language fundamentals
Framework and database5, 6, 7Uses Spring and SQL sensibly
Design and debugging8, 9, 10Clear reasoning about failures and design
Teamwork and learning11, 12Collaborates and keeps learning
Total/ 16

Suggested rule: shortlist candidates whose average is 3 or higher with no criterion at 1. Change the rule before the first interview, not after.

Run it as a video interview on LiveRec

Open the candidate and choose Schedule interview, then choose Video and pick LiveRec video, which needs no link. After the call, open the interview and choose Submit feedback to give star ratings for Technical skills, Communication skills and Culture fit, a Decision and your comments; paste your scorecard result into the comments. Recorded LiveRec video interviews are deleted 90 days after the interview as standard, so tell candidates before you record. See Schedule an interview, private notes and feedback and recordings.

Fair interviewing

Ask only job-related questions. Indian law bars gender discrimination in recruitment for the same work and requires equal opportunity for people with disabilities, so keep questions on marital status, family plans, religion, caste or health out of the interview. See illegal interview questions for the principles; US-specific examples there differ.

Next step

Copy the scorecard into your interview scorecard template, then schedule the first interviews. For the method, read the structured interview guide.

Sources

  • Ministry of Labour and Employment: https://labour.gov.in
  • Rights of Persons with Disabilities Act, 2016, Department of Empowerment of Persons with Disabilities: https://disabilityaffairs.gov.in/
  • US OPM, Structured Interviews (method reference): https://www.opm.gov/policy-data-oversight/assessment-and-selection/structured-interviews/

This is general information, not legal, tax or immigration advice. Rules change and your situation may differ. Consult a licensed attorney or qualified adviser.