I have the following code snippet:
public class A {
public static void main(String[] arg) {
new Thread() {
public void run() {
System.out.println("blah");
}
};
}
}
Here, how do I call the start()
method for the thread without creating an instance of the thread class?