Capgemini Engineering interview question

How we can define a thread in java?