5 years ago in java.lang Package

What is the output of this program?


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

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

Overall Stats

Attempted 144
Correct 54
Incorrect 30
Viewed 60

Answers

Guest
Guest
bruh
bruh - 1 month ago

bruh from Guwahati, India is saying true is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

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

Zo Go
Zo Go - 1 month ago

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

Cos Sinus
Cos Sinus - 1 month ago

Cos Sinus from Casablanca, Morocco is saying true 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 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.

Which of these methods is used to check for infinitely large and small values?

  • [A] isInfinite()
  • [B] isNaN()
  • [C] Isinfinite()
  • [D] IsNaN()

Which of these is wrapper for simple data type float?

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