-
What is the output of this program?
public class Result
{
public static void main(String args[])
{
try
{
int p = 0;
int q = 11;
int s = q / p;
System.out.print("Hello");
}
catch(Exception e)
{
System.out.print("Java");
}
}
}
-
- Compilation Error
- Runtime Error
- Hello
- Java
- None of these
Correct Option: D
Java