Question: java is int even or odd?
Answer: Now, to check whether num is even or odd, we calculate its remainder using % operator and check if it is divisible by 2 or not. For this, we use if...else statement in Java. If num is divisible by 2 , we print num is even. Else, we print num is odd.