Vidyalelo
Java Programming · Q83

Data Types and Variables

Programming · Java Programming · question 83

Q83

What will be the output of the following Java statement? 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.
Infinity
B.
0.0
C.
NaN
D.
all of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board