如果我写System.exit(0);在try块的末尾,是否会继续执行finally块? [英] If I write System.exit (0); at the end of the try block, will the finally block still execute?
本文介绍了如果我写System.exit(0);在try块的末尾,是否会继续执行finally块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我写System.exit(0);在try块的末尾,最后
解决方案
您尝试了什么?
Can any one answer the question, Currently i am preparing for interview in NareshIT,
If I write System.exit (0); at the end of the try block, will the finally block still execute?
解决方案
What happened when you tried it?
这篇关于如果我写System.exit(0);在try块的末尾,是否会继续执行finally块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文