In Java, floating-point division by zero produces Infinity (positive or negative) rather than a runtime error. The code compiles successfully and executes without throwing an exception. Division by zero only throws ArithmeticException for integer types (int, long), not floating-point types (float, double).