πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) -100.6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
268
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate