title: What is the difference between synchronized(this) and synchronized method
body: <p>Lets say we have these 2 sample code :</p>
  
  <pre><code>public synchronized void getSomething(){
       this.hello = "hello World";
  }
  </code></pre>
  
  <p>and this one</p>
  
  <pre><code>public void getSomething(){
     synchronized(this){
       this.hello = "hello World";
     }
  }
  </code></pre>
  
  <p>So some one can tell me what's the difference now?</p>