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

11 questions match

Spring, JPA and APIs
  1. #1What is inversion of control in Spring?EasyConceptSpring, JPA and APIs 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 the purpose of @RestController?EasyConceptSpring, JPA and APIs 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 is the difference between @RequestParam, @PathVariable and @RequestBody?EasyConceptSpring, JPA and APIs 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 N+1 select problem in JPA and how do you fix it?MediumConceptSpring, JPA and APIs 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. #5What is the difference between lazy and eager fetching?MediumConceptSpring, JPA and APIs 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. #6How do you validate request input in Spring?MediumConceptSpring, JPA and APIs 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 are the HTTP semantics of PUT versus PATCH?MediumConceptSpring, JPA and APIs 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 handle exceptions globally in a Spring REST API?MediumConceptSpring, JPA and APIs 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. #9Explain transaction propagation REQUIRED versus REQUIRES_NEW.HardConceptSpring, JPA and APIs 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. #10An order API occasionally creates duplicate orders when clients retry. How do you make it safe?HardScenarioSpring, JPA and APIs 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.