MCQOPTIONS
Saved Bookmarks
| 1. |
What will happen when you attempt to compile and run the following code?1. public class Test extends Thread{2.public static void main(String argv[]){3.Test t = new Test();4.t.run();5.t.start();6.}7.public void run(){8.System.out.println("run-test");9.}10. } |
| A. | un-test run-test |
| B. | un-test |
| C. | ompilation fails due to an error on line 4 |
| D. | ompilation fails due to an error on line 7 |
| E. | one of these |
| Answer» B. un-test | |