Program to Check for Leap Year in Java by Deepak

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • #java #javatutorials #deepak #smartprogramming
    ◾◼️ Important Links of Tutorials & Courses ◼️◾
    👉🏻 Java Tutorials for Beginners - Java SE 21 Version (2025) : • Java Tutorials for Beg...
    👉🏻 Free Tutorials / Notes : smartprogrammi...
    👉🏻 Free Courses : smartprogrammi...
    👉🏻 Java Development Course (Upto 80% off) : smartprogrammi...
    📞 For more details Call or What's App : +91 62838-30308 ; +91 98887-55565
    ◾◼️ Connect With Us On ◼️◾
    👉🏻 Facebook Page : / smartprogramming.india
    👉🏻 Instagram : / smart_programming
    👉🏻 Telegram : t.me/smart_pro...
    👉🏻 Whats App : www.whatsapp.c...
    👉🏻 Amazon Store : www.amazon.in/...
    ------------------------------------------------------------------------------------------
    #java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
    Program to Check Leap Year in C (HINDI/URDU),
    Java walk through: Leap Year,
    11 Find year is leap year or not in java,
    Java Program for leap year,
    Given year is leap year or not using if else in Java,
    Concept of Leap Year,
    How to check whether a given year is a leap year or not through a Java program ?.
    Program for Leap Year in C (HINDI)
    Program to Find Leap Year in C (HINDI)
    Program to Check Whether Year is Leap Year or Not
    ------------------------------------------------------------------------------------------
    Follow Me On Social Media :-
    ► Website : www.smartprogr...
    ► Instagram : / smart_programming
    ► Facebook : / smartprogramming.india

ความคิดเห็น • 87

  • @SmartProgramming
    @SmartProgramming  15 วันที่ผ่านมา

    ◾◼ Important Links of Tutorials & Courses ◼◾
    👉🏻 Java Tutorials for Beginners - Java SE 21 Version (2025) : th-cam.com/play/PLlhM4lkb2sEjtoPRP2AfVGJWFoltwtDdx.html&si=i_h8_eCgYDk_mrGA
    👉🏻 Free Tutorials / Notes : smartprogramming.in/tutorials-by-smart-programming
    👉🏻 Free Courses : smartprogramming.in/free-courses-by-smart-programming
    👉🏻 Java Development Course (Upto 80% off) : smartprogramming.in/premium-courses-by-smart-programming
    📞 For more details Call or What's App : +91 62838-30308 ; +91 98887-55565
    ◾◼ Connect With Us On ◼◾
    👉🏻 Facebook Page : facebook.com/smartprogramming.india
    👉🏻 Instagram : instagram.com/smart_programming
    👉🏻 Telegram : t.me/smart_programming_deepak
    👉🏻 Whats App : www.whatsapp.com/channel/0029Va6n2Gs42Dckpa2T1U1i
    👉🏻 Amazon Store : www.amazon.in/shop/smartprogramming

  • @arindammahanty4179
    @arindammahanty4179 2 ปีที่แล้ว +5

    this is by far the most usefull and friendly beginner java course available on youtube..
    A good teacher is so so imp...
    Thank you sir.

  • @SEMWALPRODUCTION
    @SEMWALPRODUCTION 4 ปีที่แล้ว +11

    Sir you have such a pure soul ... Your tutorials are very clear to understand.... In whole youtube channel you are the only one whose tutorials are easy to understand...
    Thanku so much sir.....😃😃

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว +2

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @sanketsirsikar7858
    @sanketsirsikar7858 2 ปีที่แล้ว +1

    Thank you so much sir ...maine bohot vedios dekhe baki chanels ke lekin aapke tarah easy way me kohi nhi padta sir , aap jo padhate ho bohot easily samj jata hai sir ,
    again thank you so much sir

  • @yadavsushil766
    @yadavsushil766 6 ปีที่แล้ว +20

    best channel to improove programming logics

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @randomvlogs1047
    @randomvlogs1047 6 ปีที่แล้ว +7

    2nd method is so easy,thnk u sir

  • @shahinakhatoon9056
    @shahinakhatoon9056 4 ปีที่แล้ว +3

    Best channel with best teacher ❤️

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @ShaikRehman-f9m
    @ShaikRehman-f9m 8 หลายเดือนก่อน +1

    THANK YOU SIR

  • @pranavjadhav9914
    @pranavjadhav9914 3 ปีที่แล้ว +1

    Thanks u explain this program in best way

  • @dhananjayrai3747
    @dhananjayrai3747 3 ปีที่แล้ว +1

    bahut achha session rahta hai sir apka,
    glad i could find this in time of need 😊.

    • @SmartProgramming
      @SmartProgramming  3 ปีที่แล้ว

      Best of Luck.
      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Shop With Us: www.amazon.in/shop/smartprogramming
      Facebook Page : facebook.com/smartprogramming.india
      Instagram : instagram.com/smart_programming

  • @nikhilkadu1924
    @nikhilkadu1924 2 ปีที่แล้ว +1

    Amazing Teaching technique.

    • @SmartProgramming
      @SmartProgramming  2 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Shop With Us: www.amazon.in/shop/smartprogramming
      Facebook Page : facebook.com/smartprogramming.india
      Instagram : instagram.com/smart_programming

  • @avinashkumar4705
    @avinashkumar4705 5 ปีที่แล้ว +10

    Hi Deepak Sir, I would like to know the step/sequence in which compiler checks for the validity of the condition in multiple if-else block program. For this example of the leap year program every if-else block is checked separately or first of all, ifs are checked then followed by else blocks?

  • @a.k.gautam1706
    @a.k.gautam1706 5 ปีที่แล้ว +3

    Thks sir for this valuable information

    • @SmartProgramming
      @SmartProgramming  5 ปีที่แล้ว

      hello A.K. Gautam,
      Thanks a lot for your valuable feedback and support, keep learning 🙂🙂
      Get updated to my new videos in the following link:
      th-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
      2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
      3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
      4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html
      5. Exception Handling in Java : th-cam.com/video/y-NlcLcxiKY/w-d-xo.html

  • @ch.kedharkiran7017
    @ch.kedharkiran7017 3 ปีที่แล้ว +1

    Awesome Explanation sir..

    • @SmartProgramming
      @SmartProgramming  3 ปีที่แล้ว

      Thanks and welcome.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Shop With Us: www.amazon.in/shop/smartprogramming
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @bhupinderkaur5449
    @bhupinderkaur5449 6 ปีที่แล้ว +3

    Helpful tutorial...

  • @AmanKumar-lt3lw
    @AmanKumar-lt3lw 5 ปีที่แล้ว +2

    helpful......tysm

  • @KailashSingh-qp7ib
    @KailashSingh-qp7ib 6 ปีที่แล้ว +2

    Very helpful SIR Thanku!!!

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      Hello Kailash Singh,
      Thanks a lot for your valuable feedback and support.
      If you are new, Please subscribe to get updates about new videos in the following link:
      th-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
      2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
      3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
      4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html

  • @shruthigouda5276
    @shruthigouda5276 5 ปีที่แล้ว +1

    tq u sir ....vry helpful

  • @unidizzinfotech4266
    @unidizzinfotech4266 7 ปีที่แล้ว +2

    deeply explained, nice

  • @viveksharma9842
    @viveksharma9842 7 ปีที่แล้ว +2

    Very helpful sir

  • @SANJEEVKUMAR-wz4rb
    @SANJEEVKUMAR-wz4rb 3 ปีที่แล้ว

    Well Explained

  • @pradipshelar463
    @pradipshelar463 6 ปีที่แล้ว +2

    hii
    you are doing great work
    very useful video...
    thank you

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      Hello pradip shelar,
      Thanks a lot for your valuable feedback and support.
      If you are new, Please subscribe to get updates about new videos in the following link:
      th-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
      2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
      3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
      4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html

  • @Anilpawar-qv4un
    @Anilpawar-qv4un 3 ปีที่แล้ว +1

    Thank you sir

  • @bhavnasharma8980
    @bhavnasharma8980 7 ปีที่แล้ว +2

    nice video sir.....

  • @srijantewari8830
    @srijantewari8830 4 ปีที่แล้ว

    best teacher

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Amazon Store: www.amazon.in/shop/smartprogramming
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @mr.arindamkhan
    @mr.arindamkhan 3 ปีที่แล้ว

    Thank you

  • @bhimsingh8041
    @bhimsingh8041 4 ปีที่แล้ว +1

    Nice✌✌✌👍

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @tilakrajchoubey5534
    @tilakrajchoubey5534 3 ปีที่แล้ว +1

    nice one

  • @ruchitatangadkar2533
    @ruchitatangadkar2533 4 ปีที่แล้ว

    Tx sir☺👍🙏

  • @rutvashukla8278
    @rutvashukla8278 4 ปีที่แล้ว +2

    sir, please make a video for advanced java, servlet JSP and collection framework.

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว +3

      Will start uploading videos from the mid of October, we are working on them.

  • @poojajain8120
    @poojajain8120 6 ปีที่แล้ว +2

    god bless u sir

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      Hello pooja jain,
      Thanks a lot for your valuable feedback and support.
      If you are new, Please subscribe to get updates about new videos in the following link:
      th-cam.com/users/smartprogramming

  • @sangrampradhan9236
    @sangrampradhan9236 5 ปีที่แล้ว +14

    actually directly year%4==0 is enough for leap then why another logic

  • @believeinpractical3930
    @believeinpractical3930 4 ปีที่แล้ว +1

    Awesome

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback. Please subscribe this channel.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @srishhh_was_bored
    @srishhh_was_bored 6 ปีที่แล้ว

    Nice sir. We can also use parameterized function.

  • @mohdraza3437
    @mohdraza3437 5 ปีที่แล้ว +5

    but sir 2016 is not divisible by 400 the answer is giving 5.04 and you told that 400 should be proper divide

  • @songworld1314
    @songworld1314 6 ปีที่แล้ว +2

    Import.java.io.*;
    Class P1
    {
    Public static void main()throwIOE.xception
    {
    Buffered reader=new input buffered reader (new input stream reader(system.in));
    System.out.println("input a number");
    Inta=integer.parse(input.readline());
    Int k=a;
    Int rev=0;
    While(a

  • @gurjeetkaur2070
    @gurjeetkaur2070 7 ปีที่แล้ว +2

    good sir

  • @mdhu4890
    @mdhu4890 4 ปีที่แล้ว +2

    Nice videos but why don't you make in English.

  • @ajayjaiswal8971
    @ajayjaiswal8971 4 ปีที่แล้ว +1

    Best

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : th-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
      Important Java Books: www.amazon.in/shop/smartprogramming?listId=3OFWAB0091PSQ
      Website : www.smartprogramming.in
      Projects & Courses Website : courses.smartprogramming.in
      Download Our Android Application for Notes and Interview Questions : play.google.com/store/apps/details?id=com.smartprogramming
      Follow Us On :
      Amazon Store: www.amazon.in/shop/smartprogramming
      Facebook Page : facebook.com/smartprogramming.india
      Instagram Page : instagram.com/smart_programming

  • @KailashSingh-qp7ib
    @KailashSingh-qp7ib 6 ปีที่แล้ว

    sir can u ans in next video why divisible by 100 if year is having 365 days?

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว +1

      Hello Kailash Singh,
      100 concept was used because while revolving around sun, earth take some minutes, seconds and milliseconds, these minutes will create one day within 4 years but the seconds and milliseconds will take around many years to create one day, thanks it, thank you, keep learning
      If you are new, Please subscribe to get updates about new videos in the following link:
      th-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
      2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
      3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
      4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html

  • @AlokKumar-ib2xl
    @AlokKumar-ib2xl 6 ปีที่แล้ว +2

    Bhai ..plz collection batado...

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      sure, but i have to first explain the arrays, then OOP;s and strings, then will go for collections.
      sorry for inconvenience.
      thank you, keep learning 🙂🙂

  • @FazalMalik
    @FazalMalik 5 ปีที่แล้ว

    what is WAP in it

  • @trisheksingh898
    @trisheksingh898 6 ปีที่แล้ว +1

    Sir plzz bluej app use karo java ka liya

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      bluej will be used from OOP's tutorials, thank you 🙂🙂

  • @alinaiqbal723
    @alinaiqbal723 4 ปีที่แล้ว +1

    Sir why you always prefer Command Prompt instead of IDE ? Please answer this in your own words.

    • @SmartProgramming
      @SmartProgramming  4 ปีที่แล้ว +1

      Through command prompt it is easier to explain each and every topic as we have to write the code manually.

    • @alinaiqbal723
      @alinaiqbal723 4 ปีที่แล้ว +1

      Smart Programming Thank you for telling me.

  • @savitachoudhary5724
    @savitachoudhary5724 6 ปีที่แล้ว +3

    sir iska logic to samjha doo

  • @Aishwarya-gh6wq
    @Aishwarya-gh6wq 6 ปีที่แล้ว +1

    why we need to check divisibility by 100

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว +4

      To check whether a year is a leap year or not, you need to check the following 3 conditions:
      1. Any year that is divisible by 400 is definitely a leap year.
      2. If it is not divisible by 400, then check if it is divisible by 100, if so, then it is NOT a leap year (even if it is divisible by 4), and
      3. If the above two conditions are not satisfied we check for divisibility by 4, it it is divisible by 4 it is a leap year.
      For example,
      if year = 2400, it is leap year,(Condition 1 satisfied)
      but if year = 2200, is NOT a leap year, (Cond. 2 satisfied),
      and if year = 2020, is a leap year, (Cond. 3 satisfied).

    • @dineshthakur399
      @dineshthakur399 5 ปีที่แล้ว +1

      every 4th year is leap year but century year (example 100) is not leap year and 400 year will be leap year this is answer in 1 line

    • @dineshthakur399
      @dineshthakur399 5 ปีที่แล้ว

      for c language (year%4==0 && year%100 !=0) || (year%400== 0) ? System.out.println("its leap year ") : System.out.println ("its not leap year");

  • @gaminge-zone2408
    @gaminge-zone2408 6 ปีที่แล้ว

    Why we need to disivility by 100

  • @sapanayari685
    @sapanayari685 6 ปีที่แล้ว +2

    Why in every program u use (String args ) ? If I will not use this in every program then there is some problem ?????

  • @omprakashdubey20061
    @omprakashdubey20061 3 ปีที่แล้ว

    Your Number is showing Invalid

  • @n.d.magarkar933
    @n.d.magarkar933 6 ปีที่แล้ว +1

    bhai aapka aawaj shifuji jaisa hai

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      Hello N.D.M AGARKAR,
      haha, thank you
      Get updated to my new videos in the following link:
      th-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : th-cam.com/video/J1TPKWIPFaE/w-d-xo.html
      2. Control Statements in Java (with programs and patterns) : th-cam.com/video/OUZkdKFeuK0/w-d-xo.html
      3. Arrays in Java (With Algorithms) : th-cam.com/video/dRrjjotgniA/w-d-xo.html
      4. OOPs Concepts in Java : th-cam.com/video/7WhnYwoBY24/w-d-xo.html

  • @raviprakashsingh750
    @raviprakashsingh750 6 ปีที่แล้ว +2

    Bhai year 2000 daal kar dekho

    • @SmartProgramming
      @SmartProgramming  6 ปีที่แล้ว

      class LeapYear2
      {
      public static void main(String args[])
      {
      int year=2000;
      if( (year%400==0) || (year%4==0 && year%100 != 0) )
      {
      System.out.println("leap year");
      }
      else
      {
      System.out.println("not a leap year");
      }
      }
      }

  • @hiteshpanchal5772
    @hiteshpanchal5772 2 ปีที่แล้ว

    String name = "Deepak sir";
    system.out.println(name+ " you are great");

  • @PankajSain
    @PankajSain 2 ปีที่แล้ว

    thank you sir