码迷,mamicode.com
首页 > 编程语言 > 详细

Java Programming Test Question 4

时间:2016-07-25 16:23:46      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:



What will be the boolean flag value to reach the finally block?

public
class JPTQuestion4 { public static void main(String[] args) {

    try { if (flag) { while (true) { } } else { System.exit(1); } } finally { System.out.println("In Finally"); } } }

又是一道坑爹的题目,结果竟然是:................................................没答案。

Java Programming Test Question 4

标签:

原文地址:http://www.cnblogs.com/565261641-fzh/p/5703804.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!