Vidyalelo
Java Programming · Q85

Exceptions

Programming · Java Programming · question 85

Q85

What will be the output of the following Java code? class Output public static void main(String args[]) try int a = 0; int b = 5; int c = a / b; System.out.print("Hello"); catch(Exception e) System.out.print("World");

A.
Hello
Answer
B.
World
C.
HelloWOrld
D.
Compilation Error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board