Amdocs interview question

How is multithreading achieved in java ?