Program to Check for Leap Year in Java by Deepak

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • #java #javatutorials #deepak #smartprogramming
    ☀ Java Development Course (Upto 80% off) : courses.smartp...
    📞 For more details Call or What's App : +91 98887-55565
    ------------------------------------------------------------------------------------------
    #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  Рік тому

    🚩🌳Professional Courses + Projects (Upto 80% off) 🌳 courses.smartprogramming.in
    🔴 Core Java Playlist : ua-cam.com/play/PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b.html
    🔴 Advance Java Playlist : ua-cam.com/play/PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg.html
    🔴 Android Playlist : ua-cam.com/play/PLlhM4lkb2sEhdllbTIVF0rzD0coCiuHok.html
    =====================================
    ▶ Core Java Chapter-wise Playlist ◀
    ⭕ 9. Collection Framework in Java | Java Data Structure : ua-cam.com/play/PLlhM4lkb2sEiOcuH1g-CUuU288qmMNpyj.html
    ⭕ 8. Multithreading in Java : ua-cam.com/play/PLlhM4lkb2sEh1pBs0KBb63PlKKqRx6M1a.html
    ⭕ 7. Strings In Java : ua-cam.com/play/PLlhM4lkb2sEh8AARH5oEivYOrMgaVsPFb.html
    ⭕ 6. Exception Handling : ua-cam.com/play/PLlhM4lkb2sEjaU-JAASDG4Tdwpf-JFARN.html
    ⭕ 5. OOP's Concepts : ua-cam.com/play/PLlhM4lkb2sEhf5NlWeYh_gdcN49pHjVP0.html
    ⭕ 4. Arrays in Java : ua-cam.com/play/PLlhM4lkb2sEi4UoqSmobDeA5VNI1f2w3C.html
    ⭕ 3. Control Statements : ua-cam.com/play/PLlhM4lkb2sEgQmNKO43i7v60no4bdc3lI.html
    ⭕ 2. Java Introduction : ua-cam.com/play/PLlhM4lkb2sEj6zsK25K9f15qNUATqYxGq.html
    ⭕ 1. Programming Basic Terminologies : ua-cam.com/play/PLlhM4lkb2sEhwPZhFmlox57kaCgMm5UgC.html
    =====================================
    ▶Advance Java Chapter-wise Playlist ◀
    ⭕ 1. JDBC (Java Database Connectivity) with MySQL : ua-cam.com/play/PLlhM4lkb2sEjDXBqaYbwAoDAQKh2yczR7.html
    ⭕ 2. Servlet & JSP Tutorials for Beginners : ua-cam.com/play/PLlhM4lkb2sEiiEAP0uSFXiFY8KdXPnN0f.html

  • @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 : ua-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

  • @arindammahanty4179
    @arindammahanty4179 2 роки тому +3

    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.

  • @yadavsushil766
    @yadavsushil766 5 років тому +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 : ua-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 роки тому

    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

  • @avinashkumar4705
    @avinashkumar4705 4 роки тому +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?

  • @randomvlogs1047
    @randomvlogs1047 6 років тому +7

    2nd method is so easy,thnk u sir

  • @dhananjayrai3747
    @dhananjayrai3747 2 роки тому +1

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

    • @SmartProgramming
      @SmartProgramming  2 роки тому

      Best of Luck.
      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : ua-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

  • @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 : ua-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

  • @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

  • @nikhilkadu1924
    @nikhilkadu1924 Рік тому +1

    Amazing Teaching technique.

    • @SmartProgramming
      @SmartProgramming  Рік тому

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : ua-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

  • @pranavjadhav9914
    @pranavjadhav9914 3 роки тому

    Thanks u explain this program in best way

  • @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.

  • @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:
      ua-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
      2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
      3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
      4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html
      5. Exception Handling in Java : ua-cam.com/video/y-NlcLcxiKY/v-deo.html

  • @ShaikRehman-f9m
    @ShaikRehman-f9m 4 місяці тому

    THANK YOU SIR

  • @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 : ua-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

  • @songworld1314
    @songworld1314 5 років тому +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

  • @bhupinderkaur5449
    @bhupinderkaur5449 6 років тому +3

    Helpful tutorial...

  • @pradipshelar463
    @pradipshelar463 5 років тому +2

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

    • @SmartProgramming
      @SmartProgramming  5 років тому

      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:
      ua-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
      2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
      3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
      4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html

  • @sangrampradhan9236
    @sangrampradhan9236 4 роки тому +14

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

  • @unidizzinfotech4266
    @unidizzinfotech4266 6 років тому +2

    deeply explained, nice

  • @AmanKumar-lt3lw
    @AmanKumar-lt3lw 5 років тому +2

    helpful......tysm

  • @KailashSingh-qp7ib
    @KailashSingh-qp7ib 5 років тому +2

    Very helpful SIR Thanku!!!

    • @SmartProgramming
      @SmartProgramming  5 років тому

      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:
      ua-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
      2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
      3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
      4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html

  • @SANJEEVKUMAR-wz4rb
    @SANJEEVKUMAR-wz4rb 3 роки тому

    Well Explained

  • @mdhu4890
    @mdhu4890 4 роки тому +2

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

  • @hiteshpanchal5772
    @hiteshpanchal5772 2 роки тому

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

  • @viveksharma9842
    @viveksharma9842 6 років тому +2

    Very helpful sir

  • @Anilpawar-qv4un
    @Anilpawar-qv4un 2 роки тому +1

    Thank you sir

  • @poojajain8120
    @poojajain8120 6 років тому +3

    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:
      ua-cam.com/users/smartprogramming

  • @mr.arindamkhan
    @mr.arindamkhan 3 роки тому

    Thank you

  • @tilakrajchoubey5534
    @tilakrajchoubey5534 3 роки тому +1

    nice one

  • @shruthigouda5276
    @shruthigouda5276 5 років тому +1

    tq u sir ....vry helpful

  • @srishhh_was_bored
    @srishhh_was_bored 5 років тому

    Nice sir. We can also use parameterized function.

  • @bhavnasharma8980
    @bhavnasharma8980 6 років тому +2

    nice video sir.....

  • @srijantewari8830
    @srijantewari8830 4 роки тому

    best teacher

    • @SmartProgramming
      @SmartProgramming  3 роки тому

      Thank you for your feedback.
      Below are some of the links for more videos and information :
      Java Tutorials Serial Wise : ua-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 5 років тому

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

    • @SmartProgramming
      @SmartProgramming  5 років тому +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:
      ua-cam.com/users/smartprogramming
      Below are the links of all the tutorials in java :
      1. Java Tutorials for Beginners : ua-cam.com/video/J1TPKWIPFaE/v-deo.html
      2. Control Statements in Java (with programs and patterns) : ua-cam.com/video/OUZkdKFeuK0/v-deo.html
      3. Arrays in Java (With Algorithms) : ua-cam.com/video/dRrjjotgniA/v-deo.html
      4. OOPs Concepts in Java : ua-cam.com/video/7WhnYwoBY24/v-deo.html

  • @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 : ua-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

  • @ruchitatangadkar2533
    @ruchitatangadkar2533 3 роки тому

    Tx sir☺👍🙏

  • @gurjeetkaur2070
    @gurjeetkaur2070 6 років тому +2

    good sir

  • @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 🙂🙂

  • @sapanayari685
    @sapanayari685 5 років тому +2

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

  • @FazalMalik
    @FazalMalik 5 років тому

    what is WAP in it

  • @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 : ua-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

  • @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.

  • @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 🙂🙂

  • @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 : ua-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

  • @savitachoudhary5724
    @savitachoudhary5724 5 років тому +2

    sir iska logic to samjha doo

  • @gaminge-zone2408
    @gaminge-zone2408 6 років тому

    Why we need to disivility by 100

  • @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");

  • @omprakashdubey20061
    @omprakashdubey20061 3 роки тому

    Your Number is showing Invalid

  • @n.d.magarkar933
    @n.d.magarkar933 5 років тому +1

    bhai aapka aawaj shifuji jaisa hai

    • @SmartProgramming
      @SmartProgramming  5 років тому

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

  • @raviprakashsingh750
    @raviprakashsingh750 5 років тому +2

    Bhai year 2000 daal kar dekho

    • @SmartProgramming
      @SmartProgramming  5 років тому

      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");
      }
      }
      }

  • @PankajSain
    @PankajSain 2 роки тому

    thank you sir