Synchronized block equivalent to static synchronized method?
<p>When you have a method such as the following:</p>

<pre><code>public synchronized void addOne() {
    a++;
}
</code></pre>

<p>it is equivalent to the following: (correct me if I'm wrong)</p>

<pre><code>public void addOne() {
    synchronized(this) {
        a++;
    }
}
</code></pre>

<p>But what is the equivalent to the following method?:</p>

<pre><code>public static synchronized void addOne() {
    a++;
    // (in this case 'a' must be static)
}
</code></pre>

<p><strong>What is a synchronized block that acts the same as a static synchronized method?</strong> I understand the static synchronized method is synchronized on the class and not the instance (since there is no instance), but what is the syntax for that?</p>
