How compiler knows which lambda to use in submit(Callable task) or submit(Runnable task) in ExecutorService?

前端 未结 0 1625
栀梦
栀梦 2021-01-30 14:55

submit() method accepts both Runnable and callable as parameters. but it returns Future when we send callable interface as a parameter.

So when

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