ThreadLocal
Published by Kaustubh Saha on December 25th, 2018
The ThreadLocal class helps us maintain 'per thread' semantics. Thus, even if two threads are executing the same code, and the code has a reference to a ThreadLocal variable, then the two threads cannot see each other's values. This is especially helpf...