Java Exception Handling || Exception Heirarchy and Difference between Exception and Error

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @nishanth6475
    @nishanth6475 2 ปีที่แล้ว +3

    Sir explanation is unbelievable ❤️ and very useful sir

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

    Really helpful :) Thank you so much, Durga Sir!

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

    Nice explanation

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

    Way of teaching very nice sir thanku u so much sir😄

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

    5:55 errors topic begins

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

    throws it's supermost of a parent class in Java

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

    God bless you❤

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

    thank you sir!!🙌

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

    sir, is syntax error, is error or exception?
    as it is caused by our program and can be recoverable.

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

      Hello Rushikesh.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @debashishmaharana7613
      @debashishmaharana7613 ปีที่แล้ว

      Every syntax error is an exception.

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

    Thank you sir

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

    public class Test {
    {
    System.out.println(10/0);
    }
    public static void main(String[] args) {
    System.out.println("Hi");
    }
    }
    Could you please clarify why this program did not throw any default exception?

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

      Sir, tell me solution for that pls

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

      jvm takes only main method but in this scenario you took {System.out.println(10/0);} outside of main method as such not provide Arithmetic Exception ......

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

      Thank you

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

      Rakhi Sharma welcome to programming world

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

      Hi Rakhi
      You wrote "10/0" in sysout that too in instance intializer block so, that part is not going to get executed as in the same class main method is present and JVM calls that main method directly without any instance of the class. Even if you are removing 10/0 and try to print anything, it will not get printed. I hope, it is clear!
      th-cam.com/video/fYPrkIurLJY/w-d-xo.html