Nguyễn Trọng Tân
New member
What will be the output of the following Java code?
A. 0
B. 1
C. true
D. false
Code:
class isinfinite_output
{
public static void main(String args[])
{
Double d = new Double(1 / 0.);
boolean x = d.isInfinite();
System.out.print(x);
}
}
B. 1
C. true
D. false