Sail E0 Webinar
Question
You have the following code in a file called Test.javaclass Base{ public static void main(String[] args){ System.out.println("Hello"); }}public class Test extends Base{}What will happen if you try to compile and run this?
Options:
A .  Runtime error
B .  Compiles and runs with no output.
C .  Compiles and runs printing
D .  It will fail to compile.
Answer: Option C

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