Q. What is the output of System.out.println(Math.round(3.7));?
Solution:
Math.round() rounds a number to the nearest integer, so 3.7 rounds to 4.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Math.round() rounds a number to the nearest integer, so 3.7 rounds to 4.
Strengthen Your Practice with our comprehensive question bank.