Capgemini interview question

Multithreading in Java