What is the result of `10 % 3` in Java?

Java Associate Easy

Java Associate — Easy

What is the result of `10 % 3` in Java?

Key points

  • The `%` operator calculates the remainder of a division.
  • 10 divided by 3 is 3 with a remainder of 1.
  • The result of `10 % 3` is the remainder, not the quotient.

Ready to go further?

Related questions