What's is the expected result? (choose 2)
class Thread1 extends Thread{
public void start(){ super.start();}
public void run() {
while(true)
System.out.println("Running");
}
static public void main(String...a){
Thread1 anObj=new Thread1();
anObj.start();
}
}
A) The start() method in overriden
thread is called first
B) The start() method of the Thread class is called
c) Choice B is true so the run() method causes an infinite loop
D) Choise A is true so the run() method of the super class runs and nothing is printed