Sail E0 Webinar
Question
Analyze the following code:public class Test implements Runnable{ public static void main(String[] args){ Test t = new Test(); t.start(); } public void run() { }}
Options:
A .  The program does not compile because the start() method is not defined in the Test class.
B .  The program compiles, but it does not run because the run() method is not implemented.
C .  The program compiles, but it does not run because the start() method is not defined.
D .  The program compiles and runs fine.
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers