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));
}
}
β
Correct Answer: (B)
-100.6