#81 Custom Exception in Java

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • НаукаНаука

Комментарии • 20

  • @inigolarraza5599
    @inigolarraza5599 10 месяцев назад +8

    Thank you Sir. You, along with another channel's 10 miuntes video, managed to explain what my college professor couldn't in 2 hours.

  • @SP-vq7tg
    @SP-vq7tg 3 месяца назад +3

    1:28 "...and now it is not crying.. " 😂

  • @jellyjollyjelly9513
    @jellyjollyjelly9513 8 месяцев назад +2

    I like how you teach us how to think!!!!! most RUclips tutorials dont

  • @krishnamantina1900
    @krishnamantina1900 Год назад +5

    Awesome sir❤‍🩹
    Lotzz of love from Andhra🤗

  • @vyavahareaditya5936
    @vyavahareaditya5936 Год назад +8

    There is one mistake in the code if the value of i is set to 0 then at line number 17 we are dividing 18/0 at that time it will throw "ArithmeticException " but we aren't handling that exception, we are handling "NavinException" at that time if we run the code then the Exception class will handle that exception.

    • @Babayaga-ys5kx
      @Babayaga-ys5kx 7 месяцев назад +1

      No,the class Navinexception will handle not the class Exception

  • @nemonahk
    @nemonahk 5 месяцев назад

    such a great explanation, thankyou sir!

  • @mohammadikram2676
    @mohammadikram2676 3 месяца назад

    Thanks Navin anna

  • @BelgiumDiaries
    @BelgiumDiaries Год назад

    Good explanation

  • @user-lx6yg7ft4l
    @user-lx6yg7ft4l Год назад +2

    without throw we can get the exception right then why throw is required?

    • @ahmad13faizan
      @ahmad13faizan Год назад +2

      Without throw try only sends some default exceptions e.g. "divide by zero exception"but what if you have to create your own exception e.g. "divide by one exception"in that case we will use throw with if else .

  • @mrkishan6071
    @mrkishan6071 Год назад +1

    Why do we need a custom exception even when we could use if-else ?

  • @matsang2008
    @matsang2008 Месяц назад

    Why do I need to add "serialVersionUID" ? It's because I have never Java version?

  • @unknownumar243
    @unknownumar243 3 месяца назад

    exception occurs while explaining exception

  • @ravalabhavitha4873
    @ravalabhavitha4873 8 месяцев назад

    Getting error string

  • @sarthaksingh3314
    @sarthaksingh3314 3 месяца назад

    and now it is not crying😂😂

  • @yashkhunti1573
    @yashkhunti1573 3 месяца назад +1

    Navin Is A Gujtari Word😅

    • @rutvikbhanderi127
      @rutvikbhanderi127 3 месяца назад

      yes , we oftenly use "navin" if we want to know that : tell me if anything new happened?.

  • @Comedyjunctionadda
    @Comedyjunctionadda 9 месяцев назад

    If you don't know how to tech then go first and learn in proper way

  • @pradeeppathak4533
    @pradeeppathak4533 Год назад +3

    Best tutorial ..I have been watching your tutorials since last 3 years ..and your explanation style is excellent.👌🫡