✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What does the following code print?
public class Test {
public static void main(String[] args) {
float f = 1.0f;
double d = f / 0;
System.out.println(d);
}
}
A. Compilation Error B. ArithmeticException C. 0.0 D. Infinity