Java lambdas thread safety

后端 未结 0 1024
鱼传尺愫
鱼传尺愫 2020-12-23 22:23

As I read previously lambdas can be cached. In a multithreaded environment if we run the following code, can it be the case, that Tread1 starts the execution of foo method w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题