Deloitte interview question

Multithreading in Java