10.4 Exception Handling in Java Practical Part 3 Checked

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

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

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

    You are one of the best Java teachers I've ever had. Thank You! Seriously! Thank You! I'm starting my new Junior Java Developer position soon :) It's one thing to just write code and other to know exactly what it means. You are a true teacher!

  • @hemant.r3499
    @hemant.r3499 2 ปีที่แล้ว +1

    The code explaination is well but this code is not running in my intellij idea

  • @venkatakrishnamupparaju2455
    @venkatakrishnamupparaju2455 9 ปีที่แล้ว +7

    sir in the place of bufferreader can we use scanner class for user input

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

      Thank u so much sir...ur videos on java concepts are priceless. I am sure that we cant learn this much, even if we go to coaching centers and paying r.10000 to them. Plz keep going on.......U R The Best...

    • @gillasdf8430
      @gillasdf8430 8 ปีที่แล้ว

      +Telusko Learnings (tusk) I used Scanner but it is showing red line under IOException ....I also included the package for that ...what should I do?

    • @gillasdf8430
      @gillasdf8430 8 ปีที่แล้ว

      and how to do that?

    • @gillasdf8430
      @gillasdf8430 8 ปีที่แล้ว

      +Telusko Learnings (tusk) Got it ! I added this line ------>throw new IOException("your message");
      before k = i/k........Thanks for replying ...you r amazing

    • @yashwanth4099
      @yashwanth4099 7 ปีที่แล้ว

      same question in my mind..y can't scanner input..it would be much faster

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

    got it,u tried to catch as much as possible exceptions in one run( if anyone left will be caught by Exception class),but still it(Exception class) will catch only one type of exception which encountered first,what if there is more than one left,ok got it,it will catch every new exception in every successive run(after updating d error code of previous exception)

  • @sparkingkiran-tq3mh
    @sparkingkiran-tq3mh 7 หลายเดือนก่อน

    Can anyone explain
    If the try block has 2 types of excpetion so 2 catch blocks isnt exceuting. Only it executes the catch block which primary exception

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

    Can we used Scanner instead of बफररीडर

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

    Dude your awsome. You dumb it down for all of us peasants with ease.

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

    Exact explanation of steps in catching exceptions. You explained possible scenarios ! Well done ! Keep on !

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

    really your tutorials always awesome you teach us how to check source code for default classes

  • @SatyakunjaFamily
    @SatyakunjaFamily 3 หลายเดือนก่อน

    except bufferuser we can take scanner class aslo

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

    sir io exception comes under exception (parent class) then why it will show error as we used catch(exception) then why we need for catch (io exception)

    • @rohitsoni9325
      @rohitsoni9325 8 ปีที่แล้ว

      You can catch IOException as catch(Exception e) as Exception is a parent class.
      Here , At the time sir wrote code to get IOException (i.e Buffered Reader Input Code) , he deleted catch(Exception e)
      So Java is showing it as an error which has to be handled.

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

    i write correct code but after giving user input 2 it did not give o/p as 4 and my code has only one error i.e. reach end of line while parsing. which i dont think it is related to my problem with main program as in previous class code it is showing same error but on running my code run perfect give desire o/p.

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

    These subtitles are hiding code that your are changing and adding.

  • @ehabelsaid2595
    @ehabelsaid2595 9 ปีที่แล้ว

    Mr.Navin I can't see the commented link to the buffered reader tutorial , would you please post it again , thanks in advance.

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

    Sir give some sample examples Soo that we can understand easily..

  • @CindyXin520
    @CindyXin520 7 ปีที่แล้ว

    what value of j will lead to IO error? I tried a letter, or 0, it was caught by main exception and neither were called IO error

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

    I LIKED The way how you teach.what a brave teacher.....

  • @funeveryday8116
    @funeveryday8116 8 ปีที่แล้ว

    While we declaring mother exception or main exception in net beansit is showing an error

  • @MohitAesthetics
    @MohitAesthetics 7 ปีที่แล้ว

    sir when we are using scanner classs its not running.....plzz help

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

    Thankyou sir, I can hardly imagine a techer like you...
    I would suggest you to plz upload videos on other programming languages as well..
    We would love to learn them from you

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

    what is the difference between using bufferreader and scanner? thanks for the great videos

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

    seriously naven sir u"r examples are superb! thanks a lot 🙂

  • @piyushkotiyal7353
    @piyushkotiyal7353 7 ปีที่แล้ว

    what's the need to catch arithmetic and arrayindexoutofboundsexception separately while we have Exception e itself to catch all d exceptions i.e. in your previous video u caught ArithmeticException using Exception class only

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

      Just catching error isn't our job, catching the error and identifying it so that user will understand what went wrong with the code/input would make our job easy.

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

    please do make a video on byte streams too

  • @preethamm.n1161
    @preethamm.n1161 5 ปีที่แล้ว

    💞💞💞💞Awesome 💞💞💞🇮🇳

  • @sudipupadhyay6935
    @sudipupadhyay6935 7 ปีที่แล้ว

    even if we put the value of j as string or some other character it is giving some unknown exception so i didnt understand the use of IOexception here?

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

      Every exception is an instance of Exception class, so you can catch it as "undefined" Exception e without mentioning it's type. IOException can be thrown if, for example, the file doesn't exist

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

    great

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

    Thankuuu sooo muchh sir, i dont know that how to thank you, but you are my lifeline sir😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭

  • @mohammedviso2269
    @mohammedviso2269 7 ปีที่แล้ว

    Nice

  • @Some1777
    @Some1777 9 ปีที่แล้ว

    ur a big help :)

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

    your videos of this type(practical) are lagging..so please slove this error.

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

    boss