Checked and Unchecked Exceptions in Java - Java Programming

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

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

  • @DenaTollefson
    @DenaTollefson Год назад +6

    Fantastic video, Will! 😊

  • @agoapk
    @agoapk 6 месяцев назад +4

    Hello! I'm speaking directly from Brazil and I've been using your channel to clear up key doubts I have with Java!!! Excellent content, one more subscriber!

    • @willtollefson
      @willtollefson  6 месяцев назад +2

      Thank you! Glad to hear you're liking the content

  • @Degoractus
    @Degoractus 7 месяцев назад +3

    your videos are fantastic, I dont get it how do you just have 1k subsciber, keep the good work, I just subscibed!!!

    • @willtollefson
      @willtollefson  7 месяцев назад +1

      Thanks so much for the sub! Glad to hear you’re liking the content

  • @duparcg
    @duparcg 2 месяца назад

    great video

  • @duparcg
    @duparcg 2 месяца назад +1

    filenotfound should really be unchecked because you have to run the code for it to see that the location is wrong for instance... very weird

    • @willtollefson
      @willtollefson  2 месяца назад +3

      A checked exception doesn’t necessarily mean an error can be detected at compile time or not (otherwise the compiler would just flag it right away). It just means that you have to provide explicit error handling code. Both checked and unchecked exceptions represent errors that can occur at runtime. The merits of checked exceptions are debatable, but among other checked exceptions, this one makes sense to me because there is reasonable likelihood of code hitting a case like this and you should have specific handling code available for it. Hopefully that helps clarify it a bit!

    • @duparcg
      @duparcg 2 месяца назад

      @@willtollefson thank you