1.

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");
}
}
}

A. Compilation Error
B. Runtime Error
C. Hello
D. Java
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs