What is the result of the following operation?
System.out.println(4 % 3);
B
The % operator is the modulo operator and returns the remainder.
public class Main { public static void main(String[] args) { System.out.println(4 % 3); } }
The code above generates the following result.