+ 1

exeption finally

if i use finally then exeption not execute????? so confusion

3rd Jul 2018, 11:03 AM
Siddharth
Siddharth - avatar
3 Réponses
+ 1
Finally block executes even if their is exception or no exception it is just used to display messages at the end of program
15th Jul 2018, 4:48 PM
Sai Chandh Pasupuleti
Sai Chandh Pasupuleti - avatar
+ 3
finally just encloses code that executes regardless of whether or not an exception is thrown
3rd Jul 2018, 11:13 AM
hinanawi
hinanawi - avatar
+ 3
Finally statement always runs although error occur or not occur it does not depend upon error but remember that except statement only run if error is catch by try statement.
3rd Jul 2018, 4:30 PM
Maninder $ingh
Maninder $ingh - avatar