pls give me the answer which is the best way to implement thread in java runnable interface or inheritance and why?