0
Why this value of x after this code = 7 , I am not understand
int x=0; try { x/=0; x+=1; } catch (exception e) { x+=3; } finally { x+=4; }
6 ответов
+ 13
try dividing 0 by 0?
Mind blown
So screw that, i am going to add x by 3.
Finally, I am going to add x by 4.
So now what is x?
+ 5
7
+ 1
answer 7
+ 1
answer is 7 not 4
0
Answer 4
- 1
thank you i understand now :)