title: How does Thread.currentThread() work?
body: <p><code>Thread.currentThread()</code> is a <strong>static</strong> method which provides reference to currently executing Thread (basically a reference to 'this' thread). </p>
  
  <p>Accessing non-static members (especially <code>this</code>) inside a static method is not possible in Java, so <code>currentThread()</code> is a native method. </p>
  
  <p>How does <code>currentThread()</code> method work behind the scenes?</p>