title: how to achieve the threadsafe without using the synchronization method or block?
body: <p>Can an body explain alternate way to achieve the threadsafe without using the synchronization at method level block level?</p>
  
  <pre><code>public synchronized int disp()
   {
  
    }
  
  
  
   or
   public int  disp()
   {
    Synchronized
     {}
    }
  </code></pre>