Java finally Keyword
The finally block is mainly used to do clean-up tasks. It is always executed even when no exceptions occur. It will not execute only in case the program exits using System. exit() or because of some fatal error causes the program to abort. It is followed by either a catch or a try block. Note: … Read more