5 years ago in java.lang Package

What will be output by the following line?

[A] -2.0
[B] -2.1
[C] 2.1
[D] 1.0
Next Question

Overall Stats

Attempted 110
Correct 7
Incorrect 60
Viewed 43


raj - 2 years ago

2.1 is right ans

Rubi Singh
Rubi Singh - 1 week ago

Rubi Singh is saying -2.1 is correct answer

bruh - 3 weeks ago

bruh from Guwahati, India is saying 2.1 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

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

Cos Sinus
Cos Sinus - 4 weeks ago

Cos Sinus from Casablanca, Morocco is saying 2.1 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 obtain value of invoking object as a long?

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

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

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