• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not able to understand the reasons for this statement in Kathy Sierra

"The thread class itsekf implements Runnable.(After all it has a run method that we are overriding). This means you could pass a thread to another thread constructor
Thread t=new Thread(new MyThread());
here MyThread extends Thread.


 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don’t use coloured text; I have changed it to black because it was impossible to read.
What can you not understand? It means a Thread can take another thread as a constructor argument.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!