Apisero interview question

how can we use thread in java