A
Q. What will be the output of the following Java code?
class exception_handling
{
public static void main(String args[])
{
try
{
throw new NullPointerException ("Hello");
}
catch(ArithmeticException e)
{
System.out.print("B");
}
}
}
- Correct Answer - Option(D)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.