Vidyalelo
Java Programming · Q41

Miscellaneous Java

Programming · Java Programming · question 41

Q41

What is the result of the following code in Java? `System.out.println(5 / 0);`

A.
Compilation Error
B.
Infinity
C.
It throws an ArithmeticException
Answer
D.
0

Answer: Option C

Solution

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