title: Difference between END transaction and COMMIT transaction
body: <p>I am trying to simulate a database recovery subsystem using java. However, I have the following questions.</p>
  
  <p>Whenever begin transaction is issued, is it always necessary that there should be an end transaction? (Like the below example)</p>
  
  <pre><code>b1    --- Begin txn 1
  r1(X) --- Read item X using txn 1
  e1    --- End txn 1
  </code></pre>
  
  <p>As per the above example, I am not issuing a Commit transaction statement. So, will my transaction succeed or fail? If the above example, is as below,</p>
  
  <pre><code>b1    --- Begin txn 1
  r1(X) --- Read item X using txn 1
  c1    --- commit txn 1
  </code></pre>
  
  <p>what is the difference between end and commit?</p>
  
  <p>Please let me know if you need more information.</p>