0
What does the finally keyword do?? :D
4 Respostas
+ 4
Finally, will run no matter what even if there is an error or not, unlike that of catch.
+ 2
The finally block is executed no matter what, exception or not. It's very useful to make sure that streams are always properly closed in the end, for example.
0
OK. So what's the point of it?? If I don't use finally and write the stuff outside the try catch. It will run with no problems :D
0
what?? :D