🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Spring Boot Interview Questions: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What is the difference between JPA and Hibernate?
  2. Q2. Which is a correct description of @RestController?
  3. Q3. Which locking approach adds a @Version column?
  4. Q4. What does PATCH do compared with PUT?
  5. Q5. How should services keep data consistent without sharing a database?
  6. Q6. When is save() actually needed with JPA?
  7. Q7. When is optimistic locking (a @Version column) a better choice than pessimistic locking?
  8. Q8. What is the difference between @Mock and @MockitoBean?
  9. Q9. When is synchronous REST/Feign communication the right choice over Kafka events?
  10. Q10. Which is the strongest way to answer "Have you used JOIN FETCH?" in an interview?