title: java syntax: "synchronized (this)"
body: <p>can you please explain to me this piece of java code? I cannot understand this syntax.</p>
  
  <pre><code>synchronized (this) {
                try {
                    wait(endTime - System.currentTimeMillis());
                } catch (Exception e) {
                }
  }
  </code></pre>