Menu
Question Index
...

What will be the output of the following program?

public class Exponent {
    public static void main(String[] args) {
        int x = 2;
        System.out.print(Math.exp(x));
        System.out.print(" " + Math.expm1(x));
    }
}


8.0 7.0
7.0 8.0
Someother output
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