Aryan PrajapatKnowledge Contributor
Will the final block be executed if the code System.exit(0) is written at the end of the try block?
Will the final block be executed if the code System.exit(0) is written at the end of the try block?
The system is established as the last line to be run, after which nothing will happen, therefore both the catch and finally blocks are essentially ignored.