6 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 146
Correct 55
Incorrect 31
Viewed 60

Answers

Guest
Guest
Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying true is correct answer

shubham adne
shubham adne - 4 months ago

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

bruh
bruh - 8 months ago

bruh from Guwahati, India is saying true is correct answer

Vaibhav Bisht
Vaibhav Bisht - 8 months ago

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

Zo Go
Zo Go - 8 months ago

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

Related Questions

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 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.