Java Exception Handling - 041

preview_player
Показать описание
In any computer program, bad things can happen despite our awesome code. Bad things can be errors like trying to access an element in array that doesn't exist. Or dividing a number by zero. These failure events are called Java exceptions.

An exception in Java is an unexpected event that happens and the program cannot continue normal behavior until the problem is addressed. These exception events are something that shouldn't, but in some rare cases, do happen. When an exception does happen, we say the exception is thrown.

#java #programming #exceptions #tutorial

Concepts: Java exceptions, Java, Programming, stack traces, object oriented programming

Social Links: Don't hesitate to contact me if you have any further questions.

Related Videos:

Media credits: All images are owned by DJ Spiess unless listed below

Music

Рекомендации по теме
Комментарии
Автор

OMFG:
- speaks English, good pace (not too fast, not too slow)
- clear, concise explanations
- organized content
- conceptual (explains the concepts using whiteboard, not code, so you get the concept before dealing with the syntax)
Really, one of the best Java videos I've seen ... anywhere...A+++

imtanuki
Автор

I love how you show all the concepts loud and clear. I'm doing a project for a college class and it really helped me. Thanks! :)

pmarcus
Автор

You're a good teacher. Few of the tutorials on youtube present the concepts in a digestible and relatable manner like you do. Thanks

TrueFaith
Автор

I love that the background is always a nature scenery, feels so calm to learn code and more focused xD

backtotheorigins
Автор

Hi thanks for the video, I showed it to my students, and they all liked it!

FarizDarari
Автор

you explained something that my prof failed miserably to explain!
tnx

ali-
Автор

amazing presentation skills .You got a new subscriber :)

danaatmeh
Автор

Your videos just get better and better. Man, so much more interesting than my computer programming courses in college. :) I love the animations you use. I'm not coding with Java and they are still interesting enough for me to watch your videos. You rock! I hope 2016 has started off really well for you.

SecondsWithMCOfficial
Автор

3:30 the world may never know what happened to line 23 RIP

sebastian-nunez
Автор

haha its not Pokemon. we don't want to catch them all :P

apschhokar
Автор

Dude, music and information is banging. Cheers.

tomanonym
Автор

Great presentation wish more youtubers would do this.

muiscnight
Автор

Always great videos to explain things right!

bc
Автор

I know this video is a few months old but I wanted to thank you for helping FINALLY understand how to read the exception stack. I never knew what to look for. I'd usually end up undo each change one at a time until I found what I did wrong and try to fix it. I'm still very new to Java so it's not like I'm writing massive programs yet but this has already saved me so much time. I hope your channel grows and you keep up the good work. Are you going to cover JavaFX at some point?

jacobsimms
Автор

thank you ! i am looking forwards to watching the next video :)

DongBanGShinKIcassio
Автор

I have enjoyed this well made video. You got a subscriber :-)

HaiThanh
Автор

2.26 Wouldn't the 4th iteration print out a null character? Since that is what an array is terminated by?

SnowofLight
Автор

can we create our own runtime exception?

sunpatel
Автор

Liking the video rather tells you if and not what you're doing right.

Rednesswahn
Автор

i couldn't understand, their is (catch(Exception e){System.out.println("error happend");throw e;}
why we are using throw e;

gautamprusty