vignesh Ramanathan wrote:hi all,
if i have a code,
class A implements runnable
{
public static void main(String args[])
{
Thread t=new Thread();
t.run();
}
public void run()
{
---Thread body---
}
}
this run method is not executed. y?.
what is the meaning of creating thread with no runnable object parameter.where will it be useful?.
You will have to tell the JVM to use
your runnable / thread. There are a few examples on how that can be done. You can either search this forum or search for some examples on google.