What will be the output of the following Java program?
Posted: Wed Jul 13, 2022 7:45 pm
class output { public static void main(String args[]) { double a, b,c; a = 3.0/0; b = 0/4.0; c=0/0.0; System.out.println(a); System.out.println(b); System.out.println(c); } }
a) NaN
b) Infinity
c) 0.0
d) all of the mentioned
a) NaN
b) Infinity
c) 0.0
d) all of the mentioned