Skip to content

Java Developer Interview Questions

For Java programmers and developers. Interviews focus on object-oriented design, collections, concurrency and memory management.

30 questions, ranked by what the job needs most

Print the top 10:Scoring sheetPractice sheet

  1. Question 1: Walk me through a bug you fixed in Java code that allowed two threads to change shared state incorrectly.

  2. Question 2: Describe a program you wrote to automate a task people had been doing by hand.

  3. Question 3: Give an example of how you changed Java code to reduce excessive memory use in a running application.

  4. Question 4: Walk me through a trial run you used to check whether a program's output matched the specification.

  5. Question 5: Describe a Java program where a class diagram helped you choose between implementing an interface and extending a class.

  6. Question 6: Describe a time you weighed two ways to store data that a program needed to look up later.

  7. Question 7: Tell me about a time a conversation with a teammate helped you pin down why a program was giving the wrong result.

  8. Question 8: Walk me through a time you documented a program change so another programmer could pick up where you left off.

  9. Question 9: Tell me about a time you applied a new programming tool, technology or technical information to improve your team's work.

  10. Question 10: Tell me about a time you worked with a teammate who was hard to deal with, such as during code reviews or on a shared program.

  11. Question 11: Walk me through the programming work you've done on your most recent projects.

  12. Question 12: Tell me how you used code, documents and conversations to find the information that mattered for a programming change.

  13. Question 13: Share an example of a test you ran that helped you make a program more reliable.

  14. Question 14: Share an example of how you made sure a change to a shared data field was consistent everywhere the application used it.

  15. Question 15: Give an example of how you turned the branches in a workflow diagram you drew into code.

  16. Question 16: Tell me about a time you spotted a problem in a program's output, logs or error reports before users did.

  17. Question 17: Describe your approach when a program you write has to process a very large volume of records.

  18. Question 18: Walk me through how you prioritize when bug fixes, change requests and new programming work all land on you at once.

  19. Question 19: Tell me about a time you had to tell a manager or client that a program would miss its deadline or had a serious bug.

  20. Question 20: Tell me how you worked with an operations teammate or systems analyst to get a program running again after a scheduled run failed.

  21. Question 21: Share an effective method you have used to ensure that networks, workstations, central processing units, and peripheral equipment respond to programs' instructions.

  22. Question 22: Describe an effective method you have used to maintain and control the use of computer systems software.

  23. Question 23: Share an experience in which your contribution to the development of instructions for end users benefited your company.

  24. Question 24: Describe a time when looking more closely at users' needs changed how you planned to build a feature.

  25. Question 25: Provide a time when you were able to identify a complex problem, evaluate the options, and implement a solution. How did the solution benefit your employer?

  26. Question 26: Share an experience in which your ability to consider the costs or benefits of a potential action helped you choose the most appropriate action.

  27. Question 27: Tell me about a time you found an unusual approach to a programming problem that the obvious solution couldn't handle.

  28. Question 28: Provide an example of a time when you were able to demonstrate excellent listening skills. What was the situation and outcome?

  29. Question 29: Share an experience in which your understanding of a current or upcoming problem helped your company to respond to the problem.

  30. Question 30: Provide a time when you worked in a rapidly evolving workplace. How did you deal with the change?