Java Developer interview questions
Core Java, collections, concurrency, JVM, Spring and testing for Java developer roles.
61 questions · 6 topics · 12 free answers
0 of 61 practised · 0 bookmarked · saved on this device
11 questions match
Spring, JPA and APIs#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.
#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.