Which of the following mathematical methods returns only an integer?

ICSE Class 10 Computer Applications PYQ · 2024 Paper · Section A

1(xx)1 Mark · 2024 · Section A · 2024 Paper

Which of the following mathematical methods returns only an integer?

Show SolutionHide Solution↓

Math.round(n)

Reason — In Java, Math.round(n) is the only method in the list that returns an integer when called with a floating-point number (float or double).

← Previous questionNext question →

Browse the free Computer Applications sample bank