Leap Year in Java - This program shows how to check if a year is a leap year or not. A year is said to be a leap year if it is divisible by 4 and not divisible by 100. A year is also said to be a leap year if it is divisible by 400.