6 years ago in java.lang Package

What is the output of this program?


class isNaN_output {
public static void main(String args[]) {
Double d = new Double(1 / 0.);
boolean x = d.isNaN();
System.out.print(x);
}
}

[A] 0
[B] 1
[C] True
[D] False
Loading...
Next Question

Overall Stats

Attempted 144
Correct 41
Incorrect 40
Viewed 63

Answers

Guest
Guest
Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying False is correct answer

shubham adne
shubham adne - 4 months ago

shubham adne from Pune, India is saying True is correct answer

bruh
bruh - 8 months ago

bruh from Guwahati, India is saying 1 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 8 months ago

Vaibhav Bisht from Dehradun, India is saying False is correct answer

Zo Go
Zo Go - 8 months ago

Zo Go from Casablanca, Morocco is saying False is correct answer

Related Questions

Which of these methods is used to obtain value of invoking object as a long?

  • [A] long value()
  • [B] long longValue()
  • [C] Long longvalue()
  • [D] Long Longvalue()