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
AnswerD.
0
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board