I am a C++ developer and new to
Java. When I read about finally, I am wondering why this block is necessary. As in C++ the control will go to the statement after catch block if it encounters exception or after normal try block. It looks to me finally is not needed. To be more clear, look at the section follows,
try{
...
}
catch(){
...
}
end:
...
What I mean is the control flow will always go to statement after label end under both normal and exception circumstances. Can anyone give me some advices?