Fresher interview question

Multi threading explaination and some java code