MCQOPTIONS
Saved Bookmarks
| 1. |
What will be output of the following program code?public class Test implements Runnable{public void run(){System.out.print("go");}public static void main(String arg[]) {Thread t = new Thread(new Test());t.run();t.run();t.start();}} |
| A. | ompilation fails. |
| B. | n exception is thrown at runtime. |
| C. | go" is printed |
| D. | gogogo" is printed |
| E. | gogo" is printed |
| Answer» E. gogo" is printed | |