Maths in Java MCQs Exercise I

Ques 1 Maths


Which of the following options correctly represents the Java 10 math function for rounding a floating-point number to the nearest integer?

A Math.floor(x)
B Math.ceil(x)
C Math.round(x)
D Math.abs(x)