Home / Programming MCQs / JAVA MCQs / Question

R

Ram Sharma • 178.09K 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

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.