?
What will be the output of the following program code?
What will be the output of the following program code?
public class Test implements Runnable{
public static void main(String[] args){
Thread t = new Thread(this);
t.start();
}
public void run(){
System.out.println("test");
}
}
public class Test implements Runnable{
public static void main(String[] args){
Thread t = new Thread(this);
t.start();
}
public void run(){
System.out.println("test");
}
}
Join the Discussion
Login to post a comment or share your explanation.
Loginhttps://www.quora.com/Why-cant-static-method-access-this-or-super-in-Java