Question: Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is? Best Answer: Yes, finally will be called after the execution of the try or catch code blocks. The only times ...

Question: Pretty simple question: In this example, will the semaphore be released one or three times? Answer: finally will execute every time you leave the catch block. So in your case releaseSemaphore() will be called three times (after each goto). ...