A

Admin • 802.91K Points
Coach

Q. What is the use of `ThreadLocal` in Java?

  • (A) To store thread pools
  • (B) To isolate variable values per thread
  • (C) To store the ID of a thread
  • (D) To create child threads

Explanation by: Admin
`ThreadLocal` provides each thread its own isolated variable instance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.