Menu
Question Index
...

What will be the output of the following program?

public class DegreesTest {
    public static void main(String[] args) {
        double input = 1.397;
        double x = Math.toDegrees(input);
        double y = ((180 / 3.14) * input);
        Boolean result = (x == y) ? true : false;
        System.out.println(result);
    }
}


true
false
Compilation Error
Runtime Error

Doubts

Problems

Topic: Java Math Class - java.lang.Math

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App