Java Exceptions - Learn Exceptions in Java #43

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 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 2 роки тому +11

      "exceptional" we see what you did there lol

  • @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 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 роки тому +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 UA-cam!

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

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

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

    Honestly, you are the best Java instructor ever. Thanks

  • @tschopam7298
    @tschopam7298 5 років тому +117

    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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  • @リンゴ酢-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.

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

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

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

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

    were you gotten your computer science degree in Ethiopia?

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

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

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

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

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

    You diserve 1m subscribers🙏

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

    Ending music: Kazura - My way

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

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

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

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

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

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

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

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

  • @Bandit-is8zi
    @Bandit-is8zi Рік тому

    This is much more friendly than error in c++

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

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

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

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

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

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

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

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

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

    Thank you for posting these kind of videos ❤️

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

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

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

  • @麦天正
    @麦天正 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!

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

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

  • @蹦太君-o4d
    @蹦太君-o4d 3 роки тому

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

  • @cocochanel3193
    @cocochanel3193 5 років тому +1

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

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

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

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

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

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

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

    why do you use that keyboard instead of using the mac keyboard

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

    9:15 Null pointer exception explained

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

    Good Job!

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

    Very well explained!

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

    where can I get that beautiful keyboard of yours?

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

    Clear explanation useful video thank you @Alex

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

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

    What's that live shortcuts for?

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

    Good explanation and how to debug the exception

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

    can you explain the difference between Exception and RuntimeException

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

    Great video! Got anything on User-Defined Exceptions?

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

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

    Brother plz teach us what is user defined exception with program help my assignment....

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

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

    Where did you get your mechanical keyboard laptop extension from?

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

    Hi Alex, I am creating a maze game and I keep getting an error message 'java.lang.IllegalStateException: No current tap-and-pay account' I don't know what this means and my app keeps crashing. This is in android studio, PLEASE HELP! I have no idea what to do and would really need some advice. Thanks in advance!

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

    I love your keyboard, where can i buy one?

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

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

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

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

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

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

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

    you're amazing
    keep it up man
    thanks

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

    As. ALWAYS short vids and super beneficial

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

    dude what's the name of that keyboard? link , brand??

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

    You deserve everything you achieve from making videos.

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

    Omg what a explanation superb

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

    You are awesome, Alex.

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

    if im learning Java on my own, what sources (books, free coding sites) would you recommed?

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

    How to resolve java.net.unknownhostexception: local host

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

    Great work!!

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

    thank you for explaining this so well :)

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

    Please make video with nested exception

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

    Hey which platform are you coding on ? I code on Eclipse and I absolutely hate it

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

    Where did you get your CS degree? I mean in my programming class, we took 3 weeks of exceptions in the first year.

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

    Sir. How to make a program that Inputs a message and identify a bad words. If bad words is present, execute an exception that displays your message has a bad words. Thank u

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

    THANK UU SO MUCHH IT HELPS ME A LOTT

  • @wardamtn
    @wardamtn 5 років тому +1

    you're the best Alex :)

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

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

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

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

    Ur The Best Love your vids man !

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

    Please make throw and throws keywords examplesplease, thankyouu.

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

    what do they mean when they say exceptions are recoverable and errors are not @Alex Lee