Q. What is the output of System.out.println(Math.abs(-5.7));?
Solution:
Math.abs() returns the absolute value, so -5.7 becomes 5.7.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Math.abs() returns the absolute value, so -5.7 becomes 5.7.
Strengthen Your Practice with our comprehensive question bank.