CodesJava

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

Posted in JDBC   
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki