What is ThreadLocal variable in Java - Code Example

0

SimpleDateFormat is not a thread-safe class and we can not share it between multiple thread but same time using local SimpleDateFormat is expensive and a better alternative of this is using ThreadLocal variable which allows each Thread to hold its SimpleD

Read this post on javarevisited.blogspot.com


Javin Paul

blogs from Mumbai