Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the ThreadLocal class in Java?
Answer: ThreadLocal provides thread-local variables, allowing each thread to have its own instance of a variable.
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook