

MCQOPTIONS
Saved Bookmarks
1. |
Analyze the following code:public class Test implements Runnable{public static void main(String[] args){Test t = new Test();t.start();}public void run() { }} |
A. | he program does not compile because the start() method is not defined in the Test class. |
B. | he program compiles, but it does not run because the start() method is not defined. |
C. | he program compiles, but it does not run because the run() method is not implemented. |
D. | he program compiles and runs fine. |
Answer» B. he program compiles, but it does not run because the start() method is not defined. | |