 So one of the things I want to take a look at is let's actually see this for a second You notice how I've got int x 10 divided by 0 now again, this is perfectly fine Java doesn't freak out about this at all and when I run this what's gonna happen is I'm gonna get in there. I'm gonna get a runtime error. My code actually does run for a second So system dot out dot print Ln Dividing by Again that just happened Notice what I notice what we're seeing here. I'm dividing my zero that print statement happens But the second I try and get to my code where I have an error message It crashes so what do I do? What can I? Build around this I can build that try catch block Around this and now if I put this line of code inside of the try Make sure you spell your exception correctly duh girl Notice how it compiled perfectly fine. I run it and notice how it didn't do anything I will you notice how I printed dividing by zero and it did it and nothing well That's because we don't have anything inside the exception section. So but You know, it was really actually kind of nice to see this error all of a sudden, you know I actually kind of prefer that to the Crashing and doing nothing. So what we can do is we actually have a few different Commands that we can work with I can actually use something called sprint a print stack trace Which is actually what we see when we kind of get a crash We can actually do something like get message if there is a message being passed on or we can convert that Error that exception Right there into a string. So we've got a few of those. So let's see system dot out dot print L in e dot get Message we can pile this up again You can see now what it did was it actually just gave me the message that it crashes with it doesn't tell me what type of Exception this is it doesn't do any that it just says. Oh, here's why I crashed dividing by zero All right, what happens if I turn this into a two string? Let's see what happens with the two string. Oh, well, we get Java dot laying dot arithmetic exception I at least get that part Division by zero again What about? Print stack trace Yeah, I want you to take a look at this print stack trace. It's got a void return type So I actually don't put it inside of a system dot out dot print line It's actually gonna have system dot out dot print line in that method. So again, we compile it perfectly fine And now you see we get that error message. I'm forcing Java to get that error message for me Now I can do all types of things if I instead I go. Oh, hey instead of doing division by zero do this and Let's actually pop it out. So int x boom I'm gonna attempt that and then I'll do that System dot out dot print l in the Quotient or the the Math equation You Val You aided it to blank now again because I'm Compiling this up and I'm catching my error I'm catching my error instead of my computer program just shutting down forever. What happens is it's going to in this case a Tempt to run x well declared x attempt to convert To assign x do You know in a division by zero it's going to attempt to do division by zero It's going to catch that exception and That exception is then in turn going to say oh well in that case do this instead And so when I run this you will notice I get division by zero That's the first thing I'm printing out and let me just scroll this up for us. There we are. I'm doing Division but dividing by zero. I'm getting that Then all of a sudden I'm attempting to do this. I can't so I catch I print the error And then I say oh well here's the math equation, which is x x being 10 divided by one