Mastering Java 2025 – 400 Free Practice Questions to Pass the 'Thinking in Java' Exam

Question: 1 / 510

What does the modulus operator (%) in Java return?

A quotient

A remainder of division

The modulus operator (%) in Java returns the remainder of division between two numbers. This is different from the quotient (result of division) or a float result. Additionally, the modulus operator does not return a boolean (true or false) result. Therefore, A, C, and D are incorrect options.

Get further explanation with Examzify DeepDiveBeta

A float result

A boolean result

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy