Domanda di colloquio di Luxoft

What is the use case of ThreadLocal?

Risposta di colloquio

Anonimo

14 mag 2023

1. To make any object as thread-safe, e.g. SimpleDateFormat 2. To hold some request context variables (e.g. user_id, transaction_id)

1