Okay in Java, we also have this exception handling. So, even though I will say how to handle this i ception or these bots are these error. So how do we do that in Java? So let's see. I have a dabba dabba Ray. Let's call it w equal 1.0 2.0 3.0 K. Yeah, right.
System dot out dot println ly. A w w that ci says to see Okay, I should get a few error here as you get some error okay exception main Java da, there array index out ball, okay array index all by ease because let's say I in this array I have onea one value to value three values here, then if I want to call this first value either be w zero, I want to call the second value EOB w one if I want to call this value EOB w two w says is not inside this array okay. So, we go ahead this assumption of error here. So how do we handle all this at session you can do some deny this try Okay Dana tech Okay I will usually use is this exception you want you can use this array index out of bounds exception by will usually use exception data do some printing or some display a message box by in this case I can only print out System dot out dot print Ly exception.to see not to message okay to string or get message I will get message then.
Okay then I ran the formatting Mandy's and Randy's project K shows six K is option dog a message via via as an option to string he RON and RON Pooja okay he will display this message here okay he will display this message. So I can handle all these SF you know all these error and then I write in order cohere when, when I want to handle exception or when when there is error and then log issue do here. Usually I will just print out this message. I print this message in this message box