03. Exception Handling Basics - You Must Know for Interview

  Рет қаралды 15,202

Ankit Wasankar

Ankit Wasankar

Күн бұрын

Пікірлер: 31
@ankit.wasankar
@ankit.wasankar Жыл бұрын
Please note the "ClassNotFoundException" is checked exception. But during explaination I have said "run-time" exception (didn't mean RuntimeException), it has caused confusion to many of us. By run-time exception I meant to say that, the "ClassNotFoundException" happens at run-time meaning when program is running, (and not while compiling). I didn't mean to say that it is a RuntimeException. Apologies for creating confusion, and thanks for pointing it out.
@shyamvittal
@shyamvittal 2 жыл бұрын
Ankit, your content is awesome, but make sure there is a minimal BG noise when recording sessions, because these are very important topics to learn and to me its a real deal to learn stuffs like this,,, Thanks 👍👍👍
@srishtikapsime4228
@srishtikapsime4228 2 жыл бұрын
Your way of explanation is outstanding. 👌 Good Work... Keep it up 👍
@onkarpatil1931
@onkarpatil1931 2 жыл бұрын
The content is too good. Awesome explanation with code examples 👍🏻👍🏻
@suriyanarayanan2406
@suriyanarayanan2406 2 жыл бұрын
Understand easily with ur content . Post more vedios
@ikechukwuvictor5848
@ikechukwuvictor5848 7 ай бұрын
Nice work sir, hope to see more of your contents
@neerajsrivastava6195
@neerajsrivastava6195 Жыл бұрын
I have small doubt. 2 scenarios 1. I do not use try catch and only declare throws so compiler know that exception may occur but does not know what to do with that exception. What will happen in this case? 2. I do not use try catch and also do not use throws. Now exception occur what will happen in this case? Isn't both results in same outcome?
@nenuanenenuane6645
@nenuanenenuane6645 3 жыл бұрын
Very good content please make vedios on thread and collections Thank you
@nagarjunreddy1040
@nagarjunreddy1040 2 жыл бұрын
Awesome explaining
@ankit.wasankar
@ankit.wasankar 2 жыл бұрын
If you can, please go through my description & give a star to my repo. It'll be very helpful to me. Thank you ✌️
@nagarjunreddy1040
@nagarjunreddy1040 2 жыл бұрын
@@ankit.wasankar why can't u put more topics ?
@anilbirajdar3427
@anilbirajdar3427 3 жыл бұрын
Sir please make videos on oops interview questions
@anandlshinde
@anandlshinde 3 жыл бұрын
Very good Content
@rutujabais9530
@rutujabais9530 3 жыл бұрын
My understanding is Throwable is a class and not an interface. Please correct me if I misunderstood.
@ankit.wasankar
@ankit.wasankar 3 жыл бұрын
Yes, it's a class
@ankit.wasankar
@ankit.wasankar 3 жыл бұрын
Recently read about it.. stackoverflow.com/questions/2890311/why-is-java-lang-throwable-a-class
@nagarjunreddy1040
@nagarjunreddy1040 2 жыл бұрын
It's very nice and clear
@Chhunumunu
@Chhunumunu 3 жыл бұрын
lol. is there baby crying in background? i was watching this video and my daughter asked “ is this video made by married man?” i just said yes without thinking and she said oh thats why baby iscrying .. i was like what ?? then i listened and then i noticed. lol . i was into exception and did not even notice it earlier. btw my kid is 6
@ankit.wasankar
@ankit.wasankar 3 жыл бұрын
wow! she is really good listener and an analyst as well !! I myself didn't notice, had to watch it again.. haha 😂
@supriyavatte809
@supriyavatte809 Жыл бұрын
ClassNotFoundExcepion is a Checked Exception,Not a run-time exception. When application try to load a class, but can not find its definition on classpath.
@ankit.wasankar
@ankit.wasankar Жыл бұрын
Thanks for pointing out the mistake, I'll try to fix it as it is casuing confusion to many of us. Although, I didn't mean to say "RuntimeException", I just wanted to say that exception happens only during "application run-time" compared to the errors which can come at compile time or runtime. I have also added pinned comment on video for more clarity.
@krishnakakade3081
@krishnakakade3081 3 жыл бұрын
Very good explanation 👍
@tareeqazeez7344
@tareeqazeez7344 Жыл бұрын
bro, ClassNotFoundExcepion is a checked exception, please correct it.
@ankit.wasankar
@ankit.wasankar Жыл бұрын
thanks for pointing it out. I'll update it in the video.
@sandeep-rai07
@sandeep-rai07 2 жыл бұрын
Very good explanation and content . ❤️
@codewits
@codewits Жыл бұрын
What about StackOverflowError? Is it too compile time error, as its an Error class.
@ankit.wasankar
@ankit.wasankar Жыл бұрын
It's an error, but it happens to be a runtime when the stack is full just like OutOfMemoryError
@ankit.wasankar
@ankit.wasankar Жыл бұрын
Just to clarify. Exceptions can happen only during runtime. Errors can happen in compile as well as Runtime.
@keerthu7055
@keerthu7055 Жыл бұрын
very grateful bro:)
@sachin24393
@sachin24393 Жыл бұрын
Throwable is a CLASS not interface
04. Create Custom Exceptions & It's Types - Java Interview
2:49
Ankit Wasankar
Рет қаралды 8 М.
01. Internal Working of HashMap & Java-8 Enhancement
19:11
Ankit Wasankar
Рет қаралды 119 М.
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 18 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
02. Equals and HashCode Contract & Different Variations
11:19
Ankit Wasankar
Рет қаралды 60 М.
06. Difference between Volatile & Synchronized - Java
9:13
Ankit Wasankar
Рет қаралды 8 М.
08. Static and Default Methods - Java 8 Interview Questions
12:56
Ankit Wasankar
Рет қаралды 6 М.
05. How to create immutable class - Java Interview Questions
9:27
Ankit Wasankar
Рет қаралды 26 М.
Day 3 - Java Interview Questions and Answers | Exceptions
19:03
CloudTech
Рет қаралды 1,9 М.
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН