Menu
Question Index
...

What will be the output of the following program?

public class RadianTest {
    public static void main(String[] args) {
        int input = 90;
        double x = Math.toRadians(input);
        double y = ((Math.PI / 180) * 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