Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

start() in Thread class  RSS feed

 
Srinivas Kothuri
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm surprised and willing to know the reason why the "start()" method is not made final in Thread class.
Please help me in understanding this.

Thank you.
 
Stephan van Hulst
Saloon Keeper
Posts: 7006
110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I'm surprised the entire class isn't final.
 
Rob Spoor
Sheriff
Posts: 20904
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's probably a leftover from the "old days" when they advised extending Thread instead of using Runnable. Which I agree is a bad idea.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!