Examveda

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

D. 0

Answer: Option C


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java