Rolta interview question

Java and multithreading