Frage im Vorstellungsgespräch bei Walmart

Implement Java multi threading callable interface

Antwort im Vorstellungsgespräch

Anonym

4. Jan. 2022

Threads can be created by extending Thread class & by implementing Runnable. But these cannot return result hence Callable is introduced which can return result to main thread via FutureTask. FutureTask has both Callable & Runnable implemented.