In the code given i just want to know that whenever i call any method
from the public static void main() it must be static or not,
As it has created some confustion, So far as i have read we cant call
any non-static method or variable from static method..Please elaborate this part
class TestThread extends Thread{
public void restart()
{
startMe();
}
public static void startMe()
{
// Some magic code here
}
public static void main(
String[] args)
{
TestThread t1=new TestThread();
t1.start();
t1.restart();
}
}