A

Admin • 831K Points
Coach

Q. What will be the output of following Java code?

Code:
public class Main {
public static void main(String[] args) {
System.out.println(Math.copySign(100.6, -200.6));
}
}
  • (A) 100.6
  • (B) -100.6
  • (C) -200.6
  • (D) 200.6
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.