Computer Applications

State the value and type of each expression.

Math.abs(-5) - Math.abs(-7)

Java Math Lib Methods

17 Likes

Answer

The output value is -2. The type of expression is int.

Explanation

    Math.abs(-5) - Math.abs(-7)
⇒ 5 - 7
⇒ -2

Answered By

11 Likes


Related Questions