What is displayed when the following piece of code is executed.
1. class
Test extends
Thread {
2. public void run() {
3. System.out.print("1 ");
4. yield();
5. System.out.print("2 ");
6. suspend();
7. System.out.print("3 ");
8. resume();
9. System.out.print("4 ");
10. }
11 public static void main(
String []args) {
12. Test t = new Test();
13. t.start();
14. }
15. }
a. Nothing, this is not a valid way to create and start a thread.
b. 1 2
c. 1 2 3
d. 1
the given ans is B which have been proved right.but I am not so clear with ans ,could somebody give me a explaination about it .
pls,I need your help!!