Java Exceptions - Learn Exceptions in Java #43

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 206

  • @alexlorenlee
    @alexlorenlee  Год назад +3

    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 года назад +241

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

    • @dimitarvelinov277
      @dimitarvelinov277 3 года назад +2

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

    • @stepbisimwa8141
      @stepbisimwa8141 3 года назад +11

      "exceptional" we see what you did there lol

  • @GG-dx4id
    @GG-dx4id 3 года назад +34

    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 RUclips!

    • @dickomin
      @dickomin 3 года назад +2

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

  • @Jake1702
    @Jake1702 5 лет назад +309

    Missed opportunity to call your program "Exceptional"

    • @tannerbarcelos6880
      @tannerbarcelos6880 4 года назад +6

      you will make a good engineer, my friend. Lmao

    • @devbosko
      @devbosko 4 года назад +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

  • @tschopam7298
    @tschopam7298 5 лет назад +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 4 года назад +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.

  • @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 :)

  • @bellermuma5463
    @bellermuma5463 2 месяца назад

    It's good that there is an expert who understands a complete beginner and explains how a beginner can better understand ❤

  • @ameerhamza4598
    @ameerhamza4598 3 года назад +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:)

  • @edupazz
    @edupazz 4 года назад +82

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

    • @SkyeVintorez
      @SkyeVintorez 4 года назад +1

      Thats right lol

    • @a.hao97
      @a.hao97 4 года назад

      what about continue doing it :thinking:

    • @ClaireGrob
      @ClaireGrob 4 года назад +1

      lmao

  • @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.

  • @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.

  • @TreeloCosplay
    @TreeloCosplay 4 года назад +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!!!!

  • @shammahcharles4941
    @shammahcharles4941 4 года назад +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

  • @Kjackdev
    @Kjackdev 3 года назад

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

  • @R247Success
    @R247Success Год назад

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

  • @josephwehbe5124
    @josephwehbe5124 5 лет назад +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!!!!

  • @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.

  • @krisroach9139
    @krisroach9139 3 года назад

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

  • @xy1408
    @xy1408 4 года назад +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!

  • @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!

  • @satoshi_21
    @satoshi_21 4 года назад +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

  • @aayansh3058
    @aayansh3058 2 года назад

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

  • @kngt9655
    @kngt9655 Год назад

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

  • @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 :)

  • @humanminus84
    @humanminus84 3 года назад

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

  • @johnathanheath6480
    @johnathanheath6480 4 года назад

    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

  • @farzana9291
    @farzana9291 4 года назад

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

  • @gogajleart702
    @gogajleart702 4 года назад +2

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

  • @nikitajanbandhu1976
    @nikitajanbandhu1976 3 года назад

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

  • @bryanguim2000
    @bryanguim2000 3 года назад

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

  • @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

  • @bharathdynamo9351
    @bharathdynamo9351 2 года назад

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

  • @xc5838
    @xc5838 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 4 года назад +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.

  • @allthings4744
    @allthings4744 3 года назад +1

    You diserve 1m subscribers🙏

  • @luigi8568
    @luigi8568 2 года назад

    Thank you for posting these kind of videos ❤️

  • @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!

  • @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.

  • @nutanpanpalia4170
    @nutanpanpalia4170 2 года назад

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

  • @蹦太君-o4d
    @蹦太君-o4d 3 года назад

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

  • @Bandit-is8zi
    @Bandit-is8zi Год назад

    This is much more friendly than error in c++

  • @cocochanel3193
    @cocochanel3193 5 лет назад +1

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

  • @simmonszhu
    @simmonszhu 2 года назад

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

  • @ka2165
    @ka2165 4 года назад +1

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

  • @リンゴ酢-b8g
    @リンゴ酢-b8g 2 года назад

    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.

  • @peidonghe2275
    @peidonghe2275 4 года назад +1

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

  • @麦天正
    @麦天正 4 года назад +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!

  • @SumukaG
    @SumukaG 2 года назад

    Most replayed moment: 5:53 xD Nobody came here to learn exceptions :P Jk. Alex is a brilliant teacher !

  • @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.

  • @firepluto6128
    @firepluto6128 3 года назад

    Omg what a explanation superb

  • @sravanthiranga1414
    @sravanthiranga1414 Год назад

    Clear explanation useful video thank you @Alex

  • @emuel5844
    @emuel5844 4 года назад +1

    Very well explained!

  • @CVB-cp6oz
    @CVB-cp6oz 4 года назад +1

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

  • @user-hu4yp4ml3c
    @user-hu4yp4ml3c 4 года назад

    As. ALWAYS short vids and super beneficial

  • @dawitpetros7062
    @dawitpetros7062 3 года назад

    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 .....

  • @b5mrjacob373
    @b5mrjacob373 4 года назад

    you're amazing
    keep it up man
    thanks

  • @steven5712
    @steven5712 4 года назад

    You are awesome, Alex.

  • @hashirraw5249
    @hashirraw5249 2 года назад

    You deserve everything you achieve from making videos.

  • @c.allmebro
    @c.allmebro 4 года назад

    Ur The Best Love your vids man !

  • @carlosjunior4446
    @carlosjunior4446 5 лет назад +6

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

  • @cherryb9128
    @cherryb9128 2 года назад

    thank you for explaining this so well :)

  • @storieswithvaluesforkids654
    @storieswithvaluesforkids654 2 года назад

    you are the best Java instructor ever!!!

  • @wardamtn
    @wardamtn 5 лет назад +1

    you're the best Alex :)

  • @induwaraudana8362
    @induwaraudana8362 4 года назад

    best teacher ever

  • @abMovieCutts
    @abMovieCutts 2 года назад +1

    were you gotten your computer science degree in Ethiopia?

  • @LKonstantina915
    @LKonstantina915 3 года назад +1

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

  • @rin-zx4on
    @rin-zx4on 3 года назад

    THANK UU SO MUCHH IT HELPS ME A LOTT

  • @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...

  • @latedeveloper7836
    @latedeveloper7836 3 года назад

    9:15 Null pointer exception explained

  • @rahulkaura135
    @rahulkaura135 5 лет назад +6

    Good Job!

  • @abdeselamselami4532
    @abdeselamselami4532 5 лет назад +1

    Thanks a lot Alex, and for the 3 dislikers would you tell us what's wrong with this tutorial, please consider a dislike must explained with a comment to help us to improve ourselves, thanks.

  • @muhannadrawajfeh
    @muhannadrawajfeh 4 года назад +1

    You make me laugh and learn. Love you

  • @YashRajGoel
    @YashRajGoel 4 года назад

    Great work!!

  • @theconfusedsoul2054
    @theconfusedsoul2054 3 года назад

    You are a hero🙌

  • @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?

  • @eminyagz4822
    @eminyagz4822 5 лет назад +4

    Ending music: Kazura - My way

  • @katehowell4776
    @katehowell4776 4 года назад +1

    You are the best! Thank you!!

  • @dansmith9859
    @dansmith9859 3 года назад

    I'll be asking my school to send you my tuition. ;)

  • @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 ?

  • @BabaBabaji
    @BabaBabaji 4 года назад +1

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

  • @DonPierreHalfaway
    @DonPierreHalfaway 3 года назад

    Good explanation and how to debug the exception

  • @ManosSef
    @ManosSef 3 года назад

    "You might have heard the word exception and wanted to stop programming right there"
    The opposite, I love throwing them at me

  • @halimh8656
    @halimh8656 4 года назад

    thank you alex you helped me

  • @ysamkabir
    @ysamkabir 5 лет назад +4

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

    • @Coldpi3ce
      @Coldpi3ce 5 лет назад

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

  • @JP-xm3qf
    @JP-xm3qf 4 года назад

    You are my Hero, thank you!

  • @michaelsd28
    @michaelsd28 4 года назад

    Great tutorials!!!

  • @kashvibhatia9910
    @kashvibhatia9910 3 года назад

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

  • @Brandli
    @Brandli 3 года назад

    where can I get that beautiful keyboard of yours?

  • @yummypencil3587
    @yummypencil3587 4 года назад +1

    pretty cool keyboard u got!

  • @anonymoustravelvidz
    @anonymoustravelvidz 4 года назад +1

    I love your keyboard, where can i buy one?

  • @michelleamaya6734
    @michelleamaya6734 3 года назад

    Great video! Got anything on User-Defined Exceptions?

  • @sheldoncooper7385
    @sheldoncooper7385 3 года назад

    please you should pursue your study and become a university lecturer.. world need more people like you

  • @LawrenceMkwebuchristian
    @LawrenceMkwebuchristian 3 года назад

    you the best man❤

  • @SkyeVintorez
    @SkyeVintorez 4 года назад

    Hey Alex, please make a Video about the diffirence of EXCEPTIONS and ERROR
    And what are the under of it, and how to use Try-Catch to get rid of that exception and errors while running a program without being terminated, i would love to watch that, coz im having a trouble with Try-Catch and Throw Keywords
    Thank you

  • @lunyjockkai7388
    @lunyjockkai7388 2 года назад

    Hello ALEX, i really really, appreciate you for your career in java indeed.
    I select you now onward as you are my best java programmer
    And i want you to do me two programmer coding
    How to create java coding of Inventor Management System
    and i need it next week if have got time please do it to me
    i will you another one tomorrow

  • @robashadur3901
    @robashadur3901 4 года назад +1

    Please make video with nested exception

  • @carlosguevara6382
    @carlosguevara6382 3 года назад

    You are good! Thank you!

  • @raghadart8607
    @raghadart8607 Год назад

    amazing vid ! thx