Sail E0 Webinar
Question
You have the following code in a file called Test.java
class 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 .  It will fail to compile.
B .  Runtime error
C .  Compiles and runs with no output.
D .  Compiles and runs printing
Answer: Option D

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