5 years ago in java.lang Package

Which of the following will compile correctly?


[A] System.out.println(Math.max(x));
[B] System.out.println(Math.random(10,3));
[C] System.out.println(Math.round(20));
[D] System.out.println(Math.sqrt(10));
Loading...
Next Question

Overall Stats

Attempted 118
Correct 18
Incorrect 48
Viewed 52

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying System.out.println(Math.sqrt(10)); is correct answer

bruh
bruh - 1 month ago

bruh from Guwahati, India is saying System.out.println(Math.sqrt(10)); is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying System.out.println(Math.sqrt(10)); is correct answer

Cos Sinus
Cos Sinus - 1 month ago

Cos Sinus from Casablanca, Morocco is saying System.out.println(Math.round(20)); is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying System.out.println(Math.sqrt(10)); 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