Java Tutorial

Java Operators

Operators

Operators perform arithmetic, comparison, and logical operations on values.

int a = 10, b = 3;
System.out.println(a % b);
Try it Yourself
Run this JAVA example in your local environment or course sandbox.