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
What will be the output of the following Java program?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following Java program?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!