|
|
|
|
|
by bmm6o
5522 days ago
|
|
> [...] then you have to declare the variable to store that value outside of the try {} block That's kind of the point. The variable will only be assigned a value if mightFail returns normally. The scoping rules make it impossible to accidentally use an uninitialized variable (i.e. a variable whose first assignment was not reached due to an exception). |
|