Purpose and Use of ThreadLocal class?
<p>I was going through the <a href="http://download.oracle.com/javase/6/docs/api/java/lang/ThreadLocal.html" rel="nofollow">ThreadLocal</a> class documentation and wondered in what scenarios it can be used.</p>

<p>First I thought it can be used in those scenarios where we have third party/legacy classes and we want to handle synchronization issues. Then I looked at other examples of ThreadLocal and found out that ThreadLocal  wont help there, because in most of those cases we have single object which is shared across all threads. Is this correct?</p>

<p>With further understanding, now I can think of using the ThreadLocal class in those scenarios where we need a seperate object for each thread and if a specific  thread interacts with an object in ThreadLocal, the same object is used every time instead of creating a new one. </p>

<p>Is this correct or am I missing something?</p>
