title: ThreadLocal vs thread local variable
body: <p>What is difference in <code>ThreadLocal.get/put</code>
  and</p>
  
  <pre><code>class ThreadT extends Thread {
  private SomeObj obj;
  .....
  }
  </code></pre>
  
  <p>I believe, please correct me if I am wrong, this obj will also be different for each thread. i.e., if we are having 5 objects of the ThreadT, we will be having each five of them having different objects of obj.</p>
  
  <p>So if this is the case, then why do we need to have the need to use <code>ThreadLocal</code>?</p>
  
  <p>Please correct me if I my understanding about either of the two is incorrect.</p>