5 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 142
Correct 40
Incorrect 39
Viewed 63

Answers

Guest
Guest
bruh
bruh - 1 month ago

bruh from Guwahati, India is saying 1 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

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

Zo Go
Zo Go - 1 month ago

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

Cos Sinus
Cos Sinus - 1 month ago

Cos Sinus from Casablanca, Morocco is saying False is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, 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()

Which of these is wrapper for simple data type float?

  • [A] float
  • [B] double
  • [C] Float
  • [D] Double

Which of these is a process of converting a simple data type into a class?

  • [A] type wrapping
  • [B] type conversion
  • [C] type casting
  • [D] None of the Mentioned.