Easy learning with example program codes

What are the different types of locking in jdbc?

  • Optimistic Locking: Optimistic locking lock the record only when update take place. Optimistic locking does not use exclusive locks when reading.
  • Pessimistic locking: Record are locked as it selects the row to update.

Related topics

Please follow and like us:
Posted in JDBC   

Copyright © 2020 CodesJava Protection Status