Java Exceptions - Learn Exceptions in Java #43

Поділитися
Вставка
  • Опубліковано 3 кві 2019
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    Exceptions in java just mean something in your code got messed up, then it shows a message where you find the problem. ✅Hopefully, what I've taught you will help you see exceptions in java in a different light.
    👑Start practicing now with 10 free java programs - alexlorenlee.com/
    🌅 Source Code - github.com/alexlorenlee/JavaT...
    Java exceptions look scary, but they're actually a friendly message that gives you loads of information for how to fix your code. The name of the exception will give you a hint as to what went wrong, it provides an exact trace of which code was hit and the exception even gives you the exact line number where it occurred.
    This java exceptions code can be tricky at first... But SURELY you'll get it :) If you followed along, congrats! You learned-by-doing!
    I hope you enjoyed this tutorial about java exceptions! I like to have a nice mix of tutorials and actual projects for you all :)
    Do you want to learn how to write java code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
    Was this video about exceptions able to help you solve your code? -
    Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
    Free Tips: bit.ly/3U6HXcb
    Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
    ~
    Alex Lee

КОМЕНТАРІ • 205

  • @alexlorenlee
    @alexlorenlee  8 місяців тому +2

    If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h

  • @stevenfinston8138
    @stevenfinston8138 3 роки тому +232

    I teach computer science at a high school and refer my students to your videos all the time. You are truly "Exceptional". :)

    • @dimitarvelinov277
      @dimitarvelinov277 2 роки тому +2

      @Steven, what you are doing as a teacher is great! It doesn't make you worth less, only on the contrary!

    • @stepbisimwa8141
      @stepbisimwa8141 2 роки тому +11

      "exceptional" we see what you did there lol

  • @Jake1702
    @Jake1702 4 роки тому +308

    Missed opportunity to call your program "Exceptional"

    • @tannerbarcelos6880
      @tannerbarcelos6880 4 роки тому +6

      you will make a good engineer, my friend. Lmao

    • @devbosko
      @devbosko 3 роки тому +1

      that moment when you name your program or even your methods/variables something funny and then have to think about what it was supposed to do.. so yeah exceptional :D

  • @GG-dx4id
    @GG-dx4id 3 роки тому +33

    Absolute hero. Since discovering this channel a couple weeks ago, I no longer waste time listening to my Intermediate Java prof's online "lectures," and just note which Alex Lee videos I need to look up.
    He should make a Patreon for people who can't quite afford the full course, but want to chip in for all the help he shares on UA-cam!

    • @dickomin
      @dickomin 2 роки тому +2

      he does. Support him at www.patreon.com/alexlorenlee

  • @tschopam7298
    @tschopam7298 4 роки тому +118

    Alex, you are such a wonderful person. You are so honest. You did not learn these exceptions at college and trying to teach us. Great lesson.Thanks

  • @GiedrysRokas
    @GiedrysRokas 4 роки тому +32

    Honestly, you are the best Java instructor ever. Thanks

  • @dilby3246
    @dilby3246 4 роки тому +16

    Thank you. This is on my final exam coming up, yet I swear we didn't go over this in class at all.

  • @unknown-xr3lq
    @unknown-xr3lq 3 роки тому +4

    i really like how he always mention how teachers makes things hard for us sometimes, well you definitely made some things easy for me so thank you.

  • @shadowfront21
    @shadowfront21 3 роки тому +5

    Once again, well done. Incredibly grateful that you take the time to actually explain things at more than just a surface level. Though many things don't require more than simply the knowledge that "This does this", it definitely helps some of us to grasp the concept when we can understand the theory.

  • @proffesormeme4495
    @proffesormeme4495 3 роки тому +4

    Man, you have no idea how much i love you .

  • @R247Success
    @R247Success Рік тому

    I love how your videos are so short yet full of good information. Thank you so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @jenniferm2370
    @jenniferm2370 4 роки тому +4

    Usually if I see the dreaded red text, I get frustrated. Your video reminded me to just read what the program is saying, and I can figure it out. Love your videos!!! Thank you :)

  • @justinfeagans6171
    @justinfeagans6171 3 роки тому +3

    Thanks Alex, I am in my third semester for my programming degree and I dont have the best professors. Your videos really help clear up alot of the things we miss in the classroom.

  • @ameerhamza4598
    @ameerhamza4598 2 роки тому +1

    Alex whenever I watched your videos to learn stuff, at the very start of the videos I always got a boast of motivation from your. Which keeps me away from all negativity and helps me learn better. Thank you:)

  • @Kjackdev
    @Kjackdev 2 роки тому

    You are better instructor than any professor I've ever had, thanks for the videos.

  • @edupazz
    @edupazz 4 роки тому +83

    "I'll catch in the next video"
    First you gotta *try* it, then maybe *finally* you can do it, haha

    • @SkyeVintorez
      @SkyeVintorez 3 роки тому +1

      Thats right lol

    • @a.hao97
      @a.hao97 3 роки тому

      what about continue doing it :thinking:

    • @ClaireGrob
      @ClaireGrob 3 роки тому +1

      lmao

  • @shammahcharles4941
    @shammahcharles4941 3 роки тому +5

    OMG BROOOO!!!!!!!!!!!!!! TEACHERS ARE SO BAD AT TEACHING THIS IM SO HAPPY I FOUND THIS!! I'M CRYING IN JOY RIGHT NOW MAN!! THIS IS GREAT

  • @michaelharris9331
    @michaelharris9331 4 роки тому +1

    Thank you man. Seriously appreciate all the quality content. You keep me motivated and grinding learning this content when it has been tough learning this new language. YOU ARE MY GO-TO FOR ALL OF MY JAVA BENDERS hahahah.
    Thanks :)

  • @TreeloCosplay
    @TreeloCosplay 3 роки тому +22

    "You might have heard of the word exception and wanting to stop programming right there because teachers do a horrible job at explaining..."
    Oh boy, you got me right there. I cracked up laughing so bad at this because it IS SO TRUE!!!!

  • @xy1408
    @xy1408 3 роки тому +1

    Love your video, Alex. I'm college student too and sometimes the profs are so bad in explaining and honestly your videos are the BEST! I appreciate it dearly!

  • @humanminus84
    @humanminus84 2 роки тому

    hay Alex I always come here to get a quick refresher ....thanks man !!!

  • @krisroach9139
    @krisroach9139 2 роки тому

    Alex lee is my semester savior!! We love you brooo!

  • @aayansh3058
    @aayansh3058 Рік тому

    Thank you. You are the one who taught me how to read and find exception .. thanks alot

  • @luigi8568
    @luigi8568 Рік тому

    Thank you for posting these kind of videos ❤️

  • @josephwehbe5124
    @josephwehbe5124 4 роки тому +3

    Dear Friend I am an IT student and I am really facing the same problems at my university about getting the programming ideas and understanding them.I really appreciate your help, it was really useful to me and helped me a lot, so thank you and keep it up man!!!!

  • @cocochanel3193
    @cocochanel3193 4 роки тому +1

    Thank you for making java simple.❤🙏.. Im still binging on your videos..

  • @nikitajanbandhu1976
    @nikitajanbandhu1976 3 роки тому

    Thanks Alex.. You make java appear so easy... You are a saviour man.. 😊😌

  • @gogajleart702
    @gogajleart702 4 роки тому +2

    Hey Alex! You are the best man, keep going. This is the best channel out there, honestly!!! God Bless You!!!

  • @eljean1312
    @eljean1312 2 роки тому

    I have an interview on wednesday and I can say that this viideo helped alot. Thank you Alex and continue making this kind of videos.

  • @ka2165
    @ka2165 4 роки тому +1

    Alex, you are the best teacher. Thank you so much!

  • @bryanguim2000
    @bryanguim2000 3 роки тому

    Thanks again. It's really helpful to all students like me who are amateur/beginner

  • @b5mrjacob373
    @b5mrjacob373 3 роки тому

    you're amazing
    keep it up man
    thanks

  • @user-ir2vf2nw6d
    @user-ir2vf2nw6d 3 роки тому

    thank you so much!! I learn java basic from your tutorial. it helps me a lot.

  • @emalr.dawlatzai3083
    @emalr.dawlatzai3083 4 роки тому +3

    Nice videos. You did explained Exceptions very well, but it was also helpful if you could do a videos on how we should handle the Exceptions. So that we can still run the remaining of our codes, even after an Exception.Thank you

  • @sravanthiranga1414
    @sravanthiranga1414 Рік тому

    Clear explanation useful video thank you @Alex

  • @simmonszhu
    @simmonszhu 2 роки тому

    Hey Alex just want you to know your teaching help me understand java very well and easy :)

  • @rin-zx4on
    @rin-zx4on 3 роки тому

    THANK UU SO MUCHH IT HELPS ME A LOTT

  • @nutanpanpalia4170
    @nutanpanpalia4170 Рік тому

    Thankyou so much for all the amazing videos you make. They make java easier

  • @steven5712
    @steven5712 3 роки тому

    You are awesome, Alex.

  • @emuel5844
    @emuel5844 4 роки тому +1

    Very well explained!

  • @user-rs2yx6zc8q
    @user-rs2yx6zc8q 3 роки тому +1

    Hi, Alex, Your video Helps me a lot with reviewing java basic. Thank you, I wish you could update more java intermediate level tutorial!

  • @Reids0me
    @Reids0me 4 роки тому +1

    When you were talking about teachers doing a poor job at explaining exceptions, I immediately thought "wow, so relatable!" Then I saw your NC State shirt and now I understand why! Wolf pack!

  • @cherryb9128
    @cherryb9128 Рік тому

    thank you for explaining this so well :)

  • @YashRajGoel
    @YashRajGoel 3 роки тому

    Great work!!

  • @satoshi_21
    @satoshi_21 3 роки тому +2

    Hey Alex, I am a German Student and I have to say, you are able to explain much better than my prof. in my nativ language ;D

  • @bharathdynamo9351
    @bharathdynamo9351 Рік тому

    Bro, the way you explain things is awesome so i am here all the time.🙂

  • @eminyagz4822
    @eminyagz4822 4 роки тому +4

    Ending music: Kazura - My way

  • @c.allmebro
    @c.allmebro 3 роки тому

    Ur The Best Love your vids man !

  • @rahulkaura135
    @rahulkaura135 4 роки тому +6

    Good Job!

  • @farzana9291
    @farzana9291 4 роки тому

    i love this guy. he has a degree and a personality.

  • @firepluto6128
    @firepluto6128 3 роки тому

    Omg what a explanation superb

  • @VijayVarshiniNarayanan
    @VijayVarshiniNarayanan 4 роки тому +4

    They never thought us too. All these exceptions and error handling portions were left in the air to be explored by us. That sucks.

  • @asifsahadh2883
    @asifsahadh2883 2 роки тому

    Thank you so much!

  • @kngt9655
    @kngt9655 Рік тому

    Bro you have to be one of the best explainers on yt

  • @schajuli1991
    @schajuli1991 3 роки тому

    I wish such kind of tutorials were available when I was in school some years ago - it just would have been so much easier. Kids today are lucky on this topic!

  • @CVB-cp6oz
    @CVB-cp6oz 3 роки тому +1

    Would be much appreciated if you made a video about checked and unchecked exceptions

  • @carlosguevara6382
    @carlosguevara6382 3 роки тому

    You are good! Thank you!

  • @ditook-codingandtech4762
    @ditook-codingandtech4762 4 роки тому +1

    I liked your videos so i subscribed :) Can you tell me which video editor you use ? How do you manage to bring that notification bar at bottom ?

  • @ericamuhammad5082
    @ericamuhammad5082 2 роки тому

    Thank you!

  • @user-hu4yp4ml3c
    @user-hu4yp4ml3c 3 роки тому

    As. ALWAYS short vids and super beneficial

  • @katehowell4776
    @katehowell4776 4 роки тому +1

    You are the best! Thank you!!

  • @navrajsharma8680
    @navrajsharma8680 4 роки тому +1

    Thanks it was really helpful.
    Can you please make a video on how dynamic binding and polymorphism is demonstrated in the code?

  • @raghadart8607
    @raghadart8607 Рік тому

    amazing vid ! thx

  • @halimh8656
    @halimh8656 3 роки тому

    thank you alex you helped me

  • @johnathanheath6480
    @johnathanheath6480 3 роки тому

    I'm a resent graduate of Full Sail University As a Game Designer . I am Currently Cross Training as A Software Developer . My Knowledge of C# Coding Has helped me pick Java Pretty Quick . Youre Videos Go into more Detail helping me to understand. what I am learning with Revature. Thank you for you video they have been a great help. over the course of this week

  • @ma8969
    @ma8969 2 роки тому

    Thank you

  • @user-ej3iw8lw3w
    @user-ej3iw8lw3w Рік тому

    All objects within the Java exception class hierarchy extend from the Throwable superclass. Only instances of Throwable (or an inherited subclass) are indirectly thrown by the Java Virtual Machine (JVM), or can be directly thrown via a throw statement.

  • @JP-xm3qf
    @JP-xm3qf 3 роки тому

    You are my Hero, thank you!

  • @muhannadrawajfeh6891
    @muhannadrawajfeh6891 4 роки тому +1

    You make me laugh and learn. Love you

  • @csello83
    @csello83 Рік тому

    Great! thx!

  • @peidonghe2275
    @peidonghe2275 3 роки тому +1

    Please explain deeper in the future, looking for more of your videos

  • @michaelsd28
    @michaelsd28 3 роки тому

    Great tutorials!!!

  • @Bandit-is8zi
    @Bandit-is8zi 6 місяців тому

    This is much more friendly than error in c++

  • @wardamtn
    @wardamtn 4 роки тому +1

    you're the best Alex :)

  • @gulnarahuseynova1718
    @gulnarahuseynova1718 2 роки тому

    Thank you)

  • @tejaxed
    @tejaxed 2 роки тому

    hey alex I got a question, so in prev video on arraylists you didn't use the "" part with arraylist but it still stored strings so why did you use this in this video, any specific reason?

  • @michelleamaya6734
    @michelleamaya6734 3 роки тому

    Great video! Got anything on User-Defined Exceptions?

  • @theconfusedsoul2054
    @theconfusedsoul2054 3 роки тому

    You are a hero🙌

  • @DonPierreHalfaway
    @DonPierreHalfaway 2 роки тому

    Good explanation and how to debug the exception

  • @BabaBabaji
    @BabaBabaji 4 роки тому +1

    can you make videos on -
    immutable class
    Custom exception
    Singleton class
    Comparable and comparator

  • @yummypencil3587
    @yummypencil3587 4 роки тому +1

    pretty cool keyboard u got!

  • @soggy77
    @soggy77 3 роки тому

    Where did you get your mechanical keyboard laptop extension from?

  • @dawitpetros7062
    @dawitpetros7062 2 роки тому

    You are the best teacher in Java Your videos really help me in school .... but i can't find your video for throw and throws in Exception handling .....

  • @carlosjunior4446
    @carlosjunior4446 5 років тому +6

    Can you please make a video about enums? Great vids btw!

  • @dom5716
    @dom5716 4 роки тому

    Thank you very much!

  • @abdulkarimjusu8282
    @abdulkarimjusu8282 2 роки тому

    Perfectly Explained, thanks. What's the tittle of the song playing in the background, at the end of the video? I love it.

  • @robashadur3901
    @robashadur3901 4 роки тому +1

    Please make video with nested exception

  • @induwaraudana8362
    @induwaraudana8362 4 роки тому

    best teacher ever

  • @ysamkabir9285
    @ysamkabir9285 4 роки тому +4

    I love your keyboard, I wanna buy-it too, you mind sharing where you bought it from. Thanks

    • @Coldpi3ce
      @Coldpi3ce 4 роки тому

      Maybe a little late lol, but its at the bottom of his video descriptions. It's got a hefty price tag

  • @robertlaursoo3125
    @robertlaursoo3125 4 роки тому

    Hi, Alex and everyone who reads this and may benefit from it. Even though it is good to use for explanation it is not good coding practice to ever catch IndexOutOfBoundsException (unchecked exception), because this is probably programmers mistake if something like this ever happens and it should be fixed (with simple if condition) instead of try-catch :) Same goes with deviding with zero etc.

  • @anonymoustravelvidz
    @anonymoustravelvidz 3 роки тому +1

    I love your keyboard, where can i buy one?

  • @allthings4744
    @allthings4744 3 роки тому +1

    You diserve 1m subscribers🙏

  • @ifthikarali6741
    @ifthikarali6741 2 роки тому

    good explanation mn

  • @lukec5838
    @lukec5838 4 роки тому +1

    Great video thank you so much for posting this! I think there is a little mistake at @3:10 when you said Java can't turn the code into machine code. Java did turn the code into Java byte code(machine code) because you were able to compile the source code. That particular exceptions was thrown during runtime not compile time.

    • @jscorpio1987
      @jscorpio1987 3 роки тому +1

      I think he’s just trying to explain it in an understandable way for beginners. Once you begin to grasp what an exception is in the first place, then it’ll be easier to start getting into compilation vs runtime errors. But to a beginner, it makes no difference. All they need to know at this point is that something went wrong.

  • @LKonstantina915
    @LKonstantina915 3 роки тому +1

    Absolutely 100% wonderful video but dang I need that old looking keyboard XD

  • @Brandli
    @Brandli 3 роки тому

    where can I get that beautiful keyboard of yours?

  • @SureElegance
    @SureElegance 10 місяців тому

    Thank you 🙏🏽

  • @funkmaster322
    @funkmaster322 2 роки тому

    Would have been nice to have a thing or two about exception handling. This video is more about how to read exceptions...

  • @arnovimoinuddin7855
    @arnovimoinuddin7855 4 роки тому

    What text editor are you using?

  • @kashvibhatia9910
    @kashvibhatia9910 3 роки тому

    Can you please make a video about sorting. Your explanations are the only ones I understand.