19. Exception Handling in Java with Examples

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

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

  • @AkshayAgarwalCoding
    @AkshayAgarwalCoding День назад +1

    Thank you for teaching Exception Handling in one go!
    I really like the way you have used the code snippets without actually coding on any IDE!

  • @Sanjeev.Network
    @Sanjeev.Network Год назад +5

    Your Explanation is Very Clear as well as in Depth. [Please keep on teaching in Depth.] Thank You Shrayansh Jain.

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

    Please post notes for all video in a post, so that it will be helpful for us to revise for our interview. Thanks for the video bro. No doubt, great video for people aspiring to be Java Developer

  • @ankurrajput2367
    @ankurrajput2367 5 месяцев назад +7

    we cannot classify into checked and unchecked because its an error but we can say its unchecked bcz it only detected at the runtime ...

  • @ashishjaiswal4207
    @ashishjaiswal4207 Год назад +4

    Akshay Saini in javascript and shrayansh Jain in java both are amazing 🚀🚀

  • @shubhamrajput37
    @shubhamrajput37 11 месяцев назад +8

    Hi Shreyansh, can you suggest some problem lists or assignments which we can practice on our own?

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

      Gfg website has around 34 Question set on various core java topics.

  • @yuvhrajverma9665
    @yuvhrajverma9665 10 месяцев назад +1

    Hi sir I have a doubt in flyweight pattern like in robot eg we are creating only two object one for human type and other for robotic type as they are cached , their extrinsic value is their coordinates now suppose we have created human type robot and set is coordinate (0,0) and now again we have created another human type robot this time we will get same object which we created before from cache and set it's new coordinate (1,1)
    Wouldn't it create a problem becoz coordinate of first object is changed from 0,0 to 1,1 and now the robot from 0,0 will display at 1,1
    Can u please help me to solve this🙏

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

    Thanks shreyansh for great explanation

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

    It's worth to buy subscription next month i have placement . & this video help me lot🎉

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

      good luck for your placement and happy in depth learning

  • @MohdAnas-fv1be
    @MohdAnas-fv1be Месяц назад

    After we stop membership then for how long can we acces Zoho notes link??
    Does anybody knows?

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

    What is type of user defined exception if extended from Exception class , checked or unchecked?

    • @ConceptandCoding
      @ConceptandCoding  7 месяцев назад

      ack of the question

    • @sagarsingh-wb8ou
      @sagarsingh-wb8ou 7 месяцев назад

      @@ConceptandCoding ?

    • @ConceptandCoding
      @ConceptandCoding  7 месяцев назад +2

      @@sagarsingh-wb8ou In Java, if a user-defined exception class extends the Exception class, it is considered a checked exception.
      at compile time its checked

  • @ssgupto4612
    @ssgupto4612 4 месяца назад

    Hey Shrayansh, do the throws keyword after the method all the way upto main() also not break the flow of program??

  • @ibrarhussainansari1019
    @ibrarhussainansari1019 8 дней назад

    Not sure but I think error will be un-checked type exception.

  • @adityakumar380
    @adityakumar380 23 дня назад +1

    Aap कहाँ थे प्रभु

  • @keshavrjaput1522
    @keshavrjaput1522 10 месяцев назад +1

    Where is community section ??
    @Concept && Coding

  • @Manish-nz4pq
    @Manish-nz4pq 11 месяцев назад +2

    Can you add video in stream API in java also i think that is missing in your playlist

  • @rr45creation86
    @rr45creation86 10 месяцев назад +1

    sir where u put the notes.....?
    pls share the link

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

    Great Explanation !

  • @user-rg9wt4qp5u
    @user-rg9wt4qp5u 10 месяцев назад +3

    No bro not practicing ,how to practice pls tell that also😢

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

      Gfg website has Java question set on core java topics.

  • @Movieteller123-i7j
    @Movieteller123-i7j 3 месяца назад

    Hii sir can we get any practice problems which is at the industry level

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

    Multithreading and concurrency challenges such as ListenableFuture use cases and Future and semaphores and other locking mechanisms in depth ..please Sir

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

      Operators and control flow statement left, after that, collections and multhreading going to start.
      This week planning to cover operators and control flow statement both.

  • @mhaesh
    @mhaesh 10 месяцев назад

    I tried couple of times to join membership But my payment got failed. Can you please help me on this

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      Hi, generally payment and all is youtube feature, could you pls msg youtube support service, they might be able to help you buddy

  • @tangellashivareddy196
    @tangellashivareddy196 10 месяцев назад

    In case of big applications which are deployed in servers, if runtime exception occurs..which is not handled, will the entire application stops?

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад +1

      No not entirely application, that particular request will fail only.

    • @souravpatra0175
      @souravpatra0175 4 месяца назад

      @@ConceptandCoding But if incase for some logic in application out of memory error occured , then the application server will shut down right ??

  • @sahilsandhu4222
    @sahilsandhu4222 7 месяцев назад

    Hi Sir, Please make a video on Exception Handling during Inheritance.

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

    Sir do you provide notes also?

  • @yuvhrajverma9665
    @yuvhrajverma9665 10 месяцев назад

    Hi sir I have asked this question previously plz reply sir
    In command pattern we have an invoker, but the client can directly use command and pass the receiver to command there is still lose coupling between client and command.
    Invoker can only be used for undo operation if we don't want to have undo operation then I think there is no need of invoker.
    And the uml that I have seen client doesn't have HAS-A relationship with invoker

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      No, if client can directly give Command, then it has tight couple with command class.
      If suppose any command giving process change, client has to make the changes too.
      That's the last thing which we wanted (i e to make client changes).
      That's why invoker is added, it's just an abstraction layer for client, so that in future any thing changes it will lead to change in 1 place i.e invoker, bcoz you can have multiple clients but invoker class would be 1.
      Hope that clarifies

    • @yuvhrajverma9665
      @yuvhrajverma9665 10 месяцев назад

      @@ConceptandCoding sir can u plz give me any example of how command giving process change effects client, in chat gpt i have searched it says we can use command pattern without invoker for simple design

    • @yuvhrajverma9665
      @yuvhrajverma9665 10 месяцев назад

      @@ConceptandCoding sir please reply, i am stucked in this pattern🥹

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      @@yuvhrajverma9665 Yuvhraj, then without invoker it won't be considered as Command pattern, and definitely you can solve the problem without invoker or even without using any design pattern, usage of design pattern is not mandatory.
      Consider very simple example: let's say i changed the command method name from "switchOnAC" to "turnOnAC" , will this impact client? Yes , client has to change the name too, what if you have 1000s of clients, will you change all?
      If you have mediator like invoker, you have to change only at invoker and clients remain un impacted

    • @yuvhrajverma9665
      @yuvhrajverma9665 10 месяцев назад

      @@ConceptandCoding sir and last question 🥹 in uml why there is no HAS-A relationship between client and invoker as client has invoker reference

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

    if you had provided notes, it would have been the best course..i think it would be helpful since you put these videos for members only.

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

      added the notes link in the description, and here too notebook.zohopublic.in/public/notes/u3i1se54e2f3438a84f42bec26cf3336a5226
      sorry missed to add that previously.

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

      @@ConceptandCoding i dont know you added to remaining videos, if not, plz try to add and correct me if i am wrong

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

      @@phanijallipalli bro I think its only for memebers

  • @sapu.02
    @sapu.02 2 месяца назад

    File Handling lecture?

  • @billion_dreams__7787
    @billion_dreams__7787 10 месяцев назад

    Bhaiya got paytm offer.. thnku so much

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      Very congratulations buddy 👏🥳

    • @MohdAnas-fv1be
      @MohdAnas-fv1be Месяц назад

      Bro can you please share your Paytm prep or interview process?
      It will help alot

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

    Bro can you please cover multithreading, collections and streams

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

      After one more video (control flow statements) i am about to start collections, multi threading unit test cases

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

      @@ConceptandCoding streams also if possible

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

      @@darliy647 it will come under collections

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

      @@ConceptandCoding love you bro 😀

  • @vishalrajiwade6964
    @vishalrajiwade6964 10 месяцев назад +1

    Hello brother,
    Are you also going to start spring & spring boot series, as it will help a lot and one can learn everything starting from java to spring boot.
    Thank you for these videos.

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

    thankyou!!!

  • @HemanthKumarNandigama
    @HemanthKumarNandigama 10 месяцев назад

    Hey hi, Where can find the notebook link?

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад +1

      I have shared in the description section

    • @HemanthKumarNandigama
      @HemanthKumarNandigama 10 месяцев назад

      ​@@ConceptandCoding hey , i like the way you teach. Thanks for making this playlist.
      I cannot see the link in description for this video and few other videos as well.
      Could you please check.

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад +1

      @@HemanthKumarNandigama ack, i will check and add

    • @HemanthKumarNandigama
      @HemanthKumarNandigama 10 месяцев назад

      @@ConceptandCoding Thanks for helping

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

      @@ConceptandCoding any update when you will be adding the notes. It would be very helpful in revising the concepts. Thanks in advance.

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

    Error is unchecked exception, as it's throws error during runtime only.

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

    Error must be a type of unchecked , runtime exception

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

    try{ method1();} finally{} lets say method1() throws runtime exception and there's no catch block to catch exception. will finally block get executed. I think program will stop abruptly and finally block will not get executed.

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

      Finally block will get executed.
      But do try it out.

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

      @@ConceptandCoding for unchecked, no catch block is needed and finally executes before program ends abruptly. for checked, throws is mandatory both in exception thrown method and from called method, if there's no catch.

  • @car_holic1995
    @car_holic1995 11 месяцев назад

    bhai your videos are explained in detail but you are not using any editor for the example of the topic..this does not boost the confidence of the viewer...please make videos in which you do coding also with the concept.

    • @ConceptandCoding
      @ConceptandCoding  11 месяцев назад +1

      Sure

    • @car_holic1995
      @car_holic1995 11 месяцев назад

      @@ConceptandCoding thanks bhai...milte hn sham ko..topmate pe scheduled h meeting 9:30 ki 😄

  • @jagadeeshp1163
    @jagadeeshp1163 28 дней назад

    error is obviously unchecked

  • @umairalvi7382
    @umairalvi7382 4 месяца назад

    font of code is very very small

  • @thevagabond85yt
    @thevagabond85yt 10 месяцев назад

    Bhai sahab apne pure video me Arithmetic ko Arth-matic bol bol ke na kan ke gaan faad di...

    • @ConceptandCoding
      @ConceptandCoding  10 месяцев назад

      :) yes I am working on my pronunciation. Thanks for pointing out. I will take care of it in future.