File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Thread, Runnable interface, simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Thread, Runnable interface, simple question" Watch "Thread, Runnable interface, simple question" New topic

Thread, Runnable interface, simple question

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 635

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

Joined: Feb 07, 2007
Posts: 237
Please take a look at the constructors of the thread class Thread API .
I agree. Here's the link:
subject: Thread, Runnable interface, simple question
It's not a secret anymore!