
hello,
If I write
System.exit (0);
at the end of the try block,
will the finally block still execute?

hii,
if we use
System.exit (0);
statement any where in our java program it will always terminate our program.
so finally will not execute!!
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.