1.

What will be the output of these statement?

class output {
public static void main(String args[])
{
double p, q, r;
p = 3.0/0;
q = 0/4.0;
r = 0/0.0;

System.out.println(p);
System.out.println(q);
System.out.println(r);
}
}

A. 0.0
B. Infinity
C. NaN
D. all of the mentioned
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs