Which of the following lines of output are displayed by the following program?
class Example {
public static void main(String args[]) {
MyThread thread = new MyThread();
thread.display("created");
thread.start();
}
}
class MyThread extends Thread {
public void display(String s) {
System.out.println(s);
}
public void run() {
display("running");
}
}
Please select all the correct answers.
|