🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Boot Interview Questions: all 10 questions

Quiz: Spring Boot Interview Questions · Question 3 of 10

Which locking approach adds a @Version column?

Which locking approach adds a @Version column?

  1. A.Optimistic locking
  2. B.Pessimistic locking
  3. C.Table locking
  4. D.Distributed locking with Kafka
Answer & explanation

Correct answer: Optimistic locking

An update fails if the version changed since it was read.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Boot Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →