Skip to content

Java Developer interview questions

Core Java, collections, concurrency, JVM, Spring and testing for Java developer roles.

61 questions · 6 topics · 12 free answers

Java Developer roadmap4 stages from basics to interview-ready. Learn the gaps, then come back and practise.

0 of 61 practised · 0 bookmarked · saved on this device

12 questions match

Testing, Build and Tooling
  1. #1What is the difference between a unit test and an integration test?EasyConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  2. #2What is Maven and what is the pom.xml?EasyConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  3. #3What does Mockito do?EasyConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  4. #4What is the difference between a mock and a spy?MediumConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  5. #5How do you test a repository layer reliably?MediumConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  6. #6What are dependency scopes in Maven?MediumConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  7. #7What is semantic versioning and why does it matter for dependencies?MediumConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  8. #8How do you resolve a dependency version conflict in a multi-module build?HardConceptTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  9. #9A test suite is flaky because tests share a database and depend on ordering. How do you stabilise it?HardScenarioTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

  10. #10A new library upgrade breaks production but passed tests. How do you respond and prevent a repeat?HardScenarioTesting, Build and Tooling Pro answer

    This answer is part of Pro

    10 of 61 Java Developer answers are free. A Pro pass opens the rest, including hands-on task steps.

Hunting for a Java Developer role too? See open Java Developer jobs.