結果 : explain two ways of creating threads in java with suitable example