+ 3
In first one in finally block x=x+3=0+3=3 y=y*4=0*4=0 x+y=3+0=0 In second one c value is passed to a parameter ,and b value is passed to b parameter so we have a=2,b=5,c=6 a+b*c=2+5*6=2+30=32
7th Jan 2021, 7:15 PM
Abhay
Abhay - avatar
+ 3
M○|-|FΞY 🇳🇬 if you are still confused about something related to this question , you can ask me anytime!
7th Jan 2021, 7:43 PM
Abhay
Abhay - avatar
+ 2
M○|-|FΞY 🇳🇬 error occured at x=1/y , possibly a zero division error so it never executed y++ and jumped to the catch block
7th Jan 2021, 7:30 PM
Abhay
Abhay - avatar
+ 2
M○|-|FΞY 🇳🇬 you have assigned value to y (int y=0) .I don't remember if unassigned variables have value 0 or a garbage value ,you can search that using Google
7th Jan 2021, 7:40 PM
Abhay
Abhay - avatar