try { //в этом блоке мы пишем код, где может возникнуть ошибка }catch(Exception e){ // тут если выскакивает ошибка мы пишем код, который должен выполнится и Приложение закрывается?? }finally { //код который выполнится независимо от того, будет ли исключение или не будет. } Ie, if an exception is thrown, the code from the catch block is executed first, and then from the finally
If the exception did not crash, then the code is executed from the finally block?
As I understand correctly, that is, in order for the Application not to close on an error, then you need to do everything to stop this error in the catch and continue executing the program code in the finally block?