03. Exception Handling Basics - You Must Know for Interview

  Рет қаралды 13,312

WebEncyclop Tutorials

WebEncyclop Tutorials

3 жыл бұрын

Exception handling basics that you must know for interview.
In this video, we will cover:
- Can we throw Error ?
- AutoClosable and try with resource - Java 7 feature
- Inheritance and Exception relation
- ClassDefNotFoundError vs. ClassNotFoundException.
- Exception Hierarchy
- throw vs. throws keyword
- How to gracefully handle exception.
#java #interviewquestions #webencyclop
In this playlist I will try to cover all the important java interview questions along with answers in very intuitive, kind of pictorial/animated way.
Complete Playlist:
• Java Developer Intervi...
Next Video:
• 04. Create Custom Exce...
In this series we will be covering all Java interview questions and answers. This is going to be comprehensive list of Java interview questions which can help experienced Java developers to prepare for an interview as well as upskilling the Java knowledge.
I would always recommend everyone to watch Durga Sir (durgasoft) videos because of extensive in depth explaination on all topics if you have more time.
But here we will try to cover important aspects of Java Programming which are always asked in interviews withing less time.
java tutorial
learn java
java tutorial for beginners
exception handling
exception handling in java with examples
Exception handling in java
durga sir
Durgasoft java
job interview questions and answers
behavioral interview questions and answers
job interview tips
Interview questions and answers

Пікірлер: 30
@onkarpatil1931
@onkarpatil1931 2 жыл бұрын
The content is too good. Awesome explanation with code examples 👍🏻👍🏻
@srishtikapsime4228
@srishtikapsime4228 2 жыл бұрын
Your way of explanation is outstanding. 👌 Good Work... Keep it up 👍
@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 👍👍👍
@anandlshinde
@anandlshinde 3 жыл бұрын
Very good Content
@krishnakakade3081
@krishnakakade3081 3 жыл бұрын
Very good explanation 👍
@suriyanarayanan2406
@suriyanarayanan2406 Жыл бұрын
Understand easily with ur content . Post more vedios
@sandeep_khangar
@sandeep_khangar 2 жыл бұрын
Very good explanation and content . ❤️
@ikechukwuvictor5848
@ikechukwuvictor5848 3 ай бұрын
Nice work sir, hope to see more of your contents
@webencyclop
@webencyclop Жыл бұрын
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.
@nagarjunreddy1040
@nagarjunreddy1040 Жыл бұрын
It's very nice and clear
@keerthu7055
@keerthu7055 10 ай бұрын
very grateful bro:)
@nenuanenenuane6645
@nenuanenenuane6645 2 жыл бұрын
Very good content please make vedios on thread and collections Thank you
@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
@webencyclop
@webencyclop 3 жыл бұрын
wow! she is really good listener and an analyst as well !! I myself didn't notice, had to watch it again.. haha 😂
@anilbirajdar3427
@anilbirajdar3427 3 жыл бұрын
Sir please make videos on oops interview questions
@nagarjunreddy1040
@nagarjunreddy1040 Жыл бұрын
Awesome explaining
@webencyclop
@webencyclop Жыл бұрын
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 Жыл бұрын
@@webencyclop why can't u put more topics ?
@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?
@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.
@webencyclop
@webencyclop Жыл бұрын
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.
@rutujabais9530
@rutujabais9530 3 жыл бұрын
My understanding is Throwable is a class and not an interface. Please correct me if I misunderstood.
@webencyclop
@webencyclop 3 жыл бұрын
Yes, it's a class
@webencyclop
@webencyclop 3 жыл бұрын
Recently read about it.. stackoverflow.com/questions/2890311/why-is-java-lang-throwable-a-class
@codewits
@codewits Жыл бұрын
What about StackOverflowError? Is it too compile time error, as its an Error class.
@webencyclop
@webencyclop Жыл бұрын
It's an error, but it happens to be a runtime when the stack is full just like OutOfMemoryError
@webencyclop
@webencyclop Жыл бұрын
Just to clarify. Exceptions can happen only during runtime. Errors can happen in compile as well as Runtime.
@tareeqazeez7344
@tareeqazeez7344 Жыл бұрын
bro, ClassNotFoundExcepion is a checked exception, please correct it.
@webencyclop
@webencyclop Жыл бұрын
thanks for pointing it out. I'll update it in the video.
@sachin24393
@sachin24393 Жыл бұрын
Throwable is a CLASS not interface
04. Create Custom Exceptions & It's Types - Java Interview
2:49
WebEncyclop Tutorials
Рет қаралды 7 М.
02. Equals and HashCode Contract & Different Variations
11:19
WebEncyclop Tutorials
Рет қаралды 52 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
05. How to create immutable class - Java Interview Questions
9:27
WebEncyclop Tutorials
Рет қаралды 23 М.
Exception handling in Java Interview questions and answers
13:54
CTPS Education
Рет қаралды 9 М.
Java 8 Streams programs you must prepare for Java Interviews
23:02
06. Difference between Volatile & Synchronized - Java
9:13
WebEncyclop Tutorials
Рет қаралды 6 М.
Cracking the coding interview || Java streams Coding questions
20:31
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН