Write a Java program to check whether an year is leap year (Core Java Interview Question
HTML-код
- Опубликовано: 27 дек 2024
- In this session, I have explained about what exactly is a Leap year. Year when divided by 4 is giving the reminder as 0 and also not divisible by 100 is straight forwardly a leap year. And also, a year which is divisible by 0 and is also divisible by 100, is a leap year, if it is divisible by 400 and if its not divisible by 400, then its not a leap year. By writing a Java program with practical demonstration, I have explained how to write the code or logic in Java for finding whether the year entered by the user is a leap year or not.
Write a Java program to check whether an year is leap year (Core Java Interview Question #482)
For any doubts, live training updates, internship program and free Courses, please join our Telegram channel t.me/qafoxorig...
View Notes Here - docs.google.co...
Find all free full courses on Software Testing and Tools here - www.linkedin.c...
Visit our website for more details here - www.qafox.com/
For any doubts, live training updates, internship program and free Courses, please join our Telegram channel t.me/qafoxoriginal