how to override thread.start() method in java?

前端 未结 10 1837
情歌与酒
情歌与酒 2020-12-03 02:07

I need to implement thread.start() method in my java code. Please let me know through an example of overriding of thread.start() method and how it works?

10条回答
  •  执念已碎
    2020-12-03 02:45

    Yes the start() method can be overridden.
    But it should not be overridden as it is implementation in thread class has the code to create a new executable thread and is specialised.

提交回复
热议问题