首页
技术面试题 3000
ThreadLocal全部方法和内部类。
ThreadLocal全部方法和内部类。
答案解析
主要方法有set、get、remove、initialValue。内部类有ThreadLocalMap,存储每个线程的变量副本,保证线程隔离。
返回列表
返回首页