Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread, Runnable interface, simple question

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



I want to rewrite this code by interface ( Runnable)

But I don't know how to replace this code :



When we use super keyword , we call father constructor,

But what is the similar method in Runnable interface?
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 242
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take a look at the constructors of the thread class Thread API .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic