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
Determine the data type of the expression
If p is an int, r is a float, q is a long and s is double.
Determine the data type of the expression
if x is int, y is long, w is float, z is double, p is short and q is long double.
State the value and type of each expression.
Math.abs(-1e-1) + Math.abs(-2e-2)State the value and type of each expression.
Math.sqrt(0.0064)