Interface Runnable question (Newbie)
From: Zalek Bloom (ZalekBloom_at_hotmail.com)
Date: 10/28/03
- Next message: Brad BARCLAY: "Re: jre/lib/ext folder"
- Previous message: kimbuba: "Re: 10 CDs with best IT eBooks only for $60 - .NET, Java, C#, C++, UNIX, Oracle etc."
- Next in thread: Erwin Moller: "Re: Interface Runnable question (Newbie)"
- Reply: Erwin Moller: "Re: Interface Runnable question (Newbie)"
- Reply: Darryl L. Pierce: "Re: Interface Runnable question (Newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 02:48:09 GMT
I am learning Threads. One of the options to create a Thread in to use
the Runnable interface. The Runnable interface looks:
public interface Runnable {
public abstract void run();
}
My question:
Why do we need to implemement Runnable - why not just to define the
run() method without writing "implements Runnable"?
Zalek
- Next message: Brad BARCLAY: "Re: jre/lib/ext folder"
- Previous message: kimbuba: "Re: 10 CDs with best IT eBooks only for $60 - .NET, Java, C#, C++, UNIX, Oracle etc."
- Next in thread: Erwin Moller: "Re: Interface Runnable question (Newbie)"
- Reply: Erwin Moller: "Re: Interface Runnable question (Newbie)"
- Reply: Darryl L. Pierce: "Re: Interface Runnable question (Newbie)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]