Square Infosoft interview question

How multi-threading works in JAVA ?