class="java"> double i = 0.0/0.0; float j = 0.0f/0.0f; System.out.println(i); // NaN System.out.println(j); // NaN
double x = 1.0/0; System.out.println(x); // Infinity System.out.println(-x); // -Infinity