title: If I synchronized two methods on the same class, can they run simultaneously?
body: <p>If I synchronized two methods on the same class, can they run simultaneously <strong>on the same object</strong>? For example:</p>
  <pre><code>class A {
      public synchronized void methodA() {
          //method A
      }
  
      public synchronized void methodB() {
          // method B
      }
  }
  </code></pre>
  <p>I know that I can't run <code>methodA()</code> twice on same object in two different threads. same thing in <code>methodB()</code>.</p>
  <p>But can I run <code>methodB()</code> on different thread while <code>methodA()</code> is still running? (same object)</p>