title: Use of synchronized on a block with instance variable
body: <p>When i synchronize a block by an instance variable, it's variable can be just accessed (not edited) by other thread?</p>
  
  <p>Example:</p>
  
  <p>If a thread invokes <code>setValue</code>, the <code>value</code> gets lock.
  But if another thread invokes <code>getValue</code> during the lock, I don't know if this call goes to wait mode.</p>
  
  <pre><code>setValue(Integer newValue){
      synchronized (this.value){
          this.value = newValue;
      }
  }
  
  getValue(){
       return this.value;
  }
  </code></pre>