Java Program – to check whether the number is even or odd.

Output: