Java Program #16 - Check Leap Year in Java

preview_player
Показать описание
Java Program to check Leap year
In this video by Programming for Beginners we will learn to write Java Program to check Leap year, using Java Tutorial videos.
This Java program is very important for your Java interview questions or if you are learning Java Programming language as a student.

A leap year is a year with 366 days which is exactly divisible by 4 except for century years (years ending with 00).
The century year is a leap year only if it is perfectly divisible by 400.

Some conditions to check for leap year:
year % 4 == 0
year % 100 == 0
year % 400 == 0

==========

Java Tutorial for Beginners Playlist:

All Java Programs Playlist:

We can learn Java Programming language to make web applications or mobile applications for android phones and several other applications for windows, Mac OS and Unix operating systems. Also we can make android applications using Java programming. The concepts covered will be related to basic java and core java that will help you in your next interview questions. You can use any version of Java but all concepts will be same for all java versions. I will be using Java SE 8.
Java is a high-level programming language. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
Java is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain.

Java JDK:
Eclipse IDE:

YouTube Gears:

#JavaProgram #JavaTutorial #Programming #Java

============================
LIKE | SHARE | COMMENT | SUBSCRIBE

Thanks for watching :)
Рекомендации по теме
Комментарии
Автор

Watching this in the leap year 2024😝...anyways found the video helpful <3

shedanceslike
Автор

century years are also divisible by 4, why to check with 100 and 400

Debraj_atlantisdb
Автор

return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);

akshit