#16 Understanding Java Error Handling Try, Catch, Finally Explained

Published: 07 December 2024
on channel: JAVA CLASSES BY RASHMI SIR
4

You know that hundred by 0 is generating word arithmetic exception Then this line generate word arithmetic exception So control move to the catch block I'm in the catch block Catch block also return but you know that Finally block must be executed once the try block executed means It print I'm in finally block and return 30 In this case it print I'm in try block I'm in catch block I'm in finally block and it return word uh 30 So whose return statement is considered Finally block return statement is always considered Now check uh what I can did here I just compile the code I'm just executing the code I'm in try block I'm in catch block I'm in finally block result is word 30


On this page of the site you can watch the video online #16 Understanding Java Error Handling Try, Catch, Finally Explained with a duration of hours minute second in good quality, which was uploaded by the user JAVA CLASSES BY RASHMI SIR 07 December 2024, share the link with friends and acquaintances, this video has already been watched times on youtube and it was liked by 4 viewers. Enjoy your viewing!