首页
技术面试题 3000
ThreadLocal的get方法。
ThreadLocal的get方法。
答案解析
get方法从当前线程的ThreadLocalMap获取变量副本,如果没有则调用initialValue初始化,保证线程独立访问。
返回列表
返回首页