No video

19. Exception Handling in Java with Examples

  Рет қаралды 17,784

Concept && Coding - by Shrayansh

Concept && Coding - by Shrayansh

Күн бұрын

➡️ Notes link: Shared in the Member Community Post (If you are Member of this channel, then pls check the Member community post, i have shared the Notes link there)
➡️ Join this channel to get access to member only perks:
/ @conceptandcoding
Topics which i have covered:
- What is Exception
- Exception Hierarchy
- Uncheck / Runtime Exception
- Checked / CompileTime Exception
- How to handle the Exception properly (try, catch, finally, throw, throws)
- Creating User-Defined Exception class
- Advantages of Exception Handling
- Disadvantage of Exception Handling
Chapters:
00:00 - Introduction
00:52 - What is Exception
07:26 - Exception Hierarchy
15:48 - Uncheck / Runtime Exception
22:46 - Checked / CompileTime Exception
36:34 - Handle the Exception(try, catch, finally, throw, throws)
58:42 - Creating User-Defined Exception class
01:01:28 - Advantages of Exception Handling
01:10:17 - Disadvantage of Exception Handling
#java #softwareengineer

Пікірлер: 84
@Sanjeev.Network
@Sanjeev.Network 11 ай бұрын
Your Explanation is Very Clear as well as in Depth. [Please keep on teaching in Depth.] Thank You Shrayansh Jain.
@ConceptandCoding
@ConceptandCoding 11 ай бұрын
Thank you
@ankurrajput2367
@ankurrajput2367 5 ай бұрын
we cannot classify into checked and unchecked because its an error but we can say its unchecked bcz it only detected at the runtime ...
@vasanth_here
@vasanth_here 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
@dhivyaviswanathan7604
@dhivyaviswanathan7604 6 ай бұрын
Thanks shreyansh for great explanation
@shubhamrajput37
@shubhamrajput37 10 ай бұрын
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.
@ashishjaiswal4207
@ashishjaiswal4207 Жыл бұрын
Akshay Saini in javascript and shrayansh Jain in java both are amazing 🚀🚀
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks a lot buddy
@saikumargatla4706
@saikumargatla4706 2 ай бұрын
Yes bro I too got the same vibe❤
@adityakumar380
@adityakumar380 18 сағат бұрын
Aap कहाँ थे प्रभु
@yuvhrajverma9665
@yuvhrajverma9665 9 ай бұрын
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🙏
@MohdAnas-fv1be
@MohdAnas-fv1be 17 күн бұрын
After we stop membership then for how long can we acces Zoho notes link?? Does anybody knows?
@pransam1
@pransam1 2 ай бұрын
Great Explanation !
@keshavrjaput1522
@keshavrjaput1522 9 ай бұрын
Where is community section ?? @Concept && Coding
@Manish-nz4pq
@Manish-nz4pq 11 ай бұрын
Can you add video in stream API in java also i think that is missing in your playlist
@ConceptandCoding
@ConceptandCoding 11 ай бұрын
It's next video buddy
@sagarsingh-wb8ou
@sagarsingh-wb8ou 7 ай бұрын
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 6 ай бұрын
@@ConceptandCoding ?
@ConceptandCoding
@ConceptandCoding 6 ай бұрын
@@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 3 ай бұрын
Hey Shrayansh, do the throws keyword after the method all the way upto main() also not break the flow of program??
@nishantbhandari8123
@nishantbhandari8123 2 ай бұрын
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
@rr45creation86
@rr45creation86 9 ай бұрын
sir where u put the notes.....? pls share the link
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
Pls check the description section buddy
@sahilsandhu4222
@sahilsandhu4222 6 ай бұрын
Hi Sir, Please make a video on Exception Handling during Inheritance.
@dikshitarathore7860
@dikshitarathore7860 2 ай бұрын
Sir do you provide notes also?
@code4logics
@code4logics Жыл бұрын
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.
@Movieteller123-i7j
@Movieteller123-i7j 3 ай бұрын
Hii sir can we get any practice problems which is at the industry level
@darliy647
@darliy647 Жыл бұрын
Bro can you please cover multithreading, collections and streams
@ConceptandCoding
@ConceptandCoding Жыл бұрын
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 9 ай бұрын
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.
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
Yes I am planning to
@user-rg9wt4qp5u
@user-rg9wt4qp5u 9 ай бұрын
No bro not practicing ,how to practice pls tell that also😢
@girishanker3796
@girishanker3796 Ай бұрын
Gfg website has Java question set on core java topics.
@mhaesh
@mhaesh 9 ай бұрын
I tried couple of times to join membership But my payment got failed. Can you please help me on this
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
No not entirely application, that particular request will fail only.
@souravpatra0175
@souravpatra0175 3 ай бұрын
@@ConceptandCoding But if incase for some logic in application out of memory error occured , then the application server will shut down right ??
@ashishjaiswal4207
@ashishjaiswal4207 Жыл бұрын
Error is unchecked exception, as it's throws error during runtime only.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Right
@sapu.02
@sapu.02 Ай бұрын
File Handling lecture?
@nishantsharma8824
@nishantsharma8824 Жыл бұрын
thankyou!!!
@phanijallipalli
@phanijallipalli 8 ай бұрын
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 8 ай бұрын
added the notes link in the description, and here too notebook.zohopublic.in/public/notes/u3i1se54e2f3438a84f42bec26cf3336a5226 sorry missed to add that previously.
@phanijallipalli
@phanijallipalli 8 ай бұрын
@@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
@vasanth_here
@vasanth_here 2 ай бұрын
Error must be a type of unchecked , runtime exception
@billion_dreams__7787
@billion_dreams__7787 9 ай бұрын
Bhaiya got paytm offer.. thnku so much
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
Very congratulations buddy 👏🥳
@MohdAnas-fv1be
@MohdAnas-fv1be 17 күн бұрын
Bro can you please share your Paytm prep or interview process? It will help alot
@HemanthKumarNandigama
@HemanthKumarNandigama 9 ай бұрын
Hey hi, Where can find the notebook link?
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
I have shared in the description section
@HemanthKumarNandigama
@HemanthKumarNandigama 9 ай бұрын
​@@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 9 ай бұрын
@@HemanthKumarNandigama ack, i will check and add
@HemanthKumarNandigama
@HemanthKumarNandigama 9 ай бұрын
@@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.
@yuvhrajverma9665
@yuvhrajverma9665 9 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
@@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 9 ай бұрын
@@ConceptandCoding sir please reply, i am stucked in this pattern🥹
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
@@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 9 ай бұрын
@@ConceptandCoding sir and last question 🥹 in uml why there is no HAS-A relationship between client and invoker as client has invoker reference
@jagadeeshp1163
@jagadeeshp1163 5 күн бұрын
error is obviously unchecked
@car_holic1995
@car_holic1995 10 ай бұрын
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 10 ай бұрын
Sure
@car_holic1995
@car_holic1995 10 ай бұрын
@@ConceptandCoding thanks bhai...milte hn sham ko..topmate pe scheduled h meeting 9:30 ki 😄
@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.
@umairalvi7382
@umairalvi7382 3 ай бұрын
font of code is very very small
@ConceptandCoding
@ConceptandCoding 3 ай бұрын
sorry for that
@thevagabond85yt
@thevagabond85yt 9 ай бұрын
Bhai sahab apne pure video me Arithmetic ko Arth-matic bol bol ke na kan ke gaan faad di...
@ConceptandCoding
@ConceptandCoding 9 ай бұрын
:) yes I am working on my pronunciation. Thanks for pointing out. I will take care of it in future.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 378 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 13 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 19 МЛН
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 67 М.
Programming Languages I used at Google (C++ rant)
6:14
NeetCodeIO
Рет қаралды 87 М.
The mind behind Linux | Linus Torvalds | TED
21:31
TED
Рет қаралды 6 МЛН
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 340 М.