Win a copy of The Java Performance Companion this week in the Performance 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: 243
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