Java每日一题20170328

因改版后无法添加扩展链接,20170327问题解析请到公众号查看,问题解析在公众号首发,公众号ID:weknow619。

package Mar2017;

public class Ques0328 {

    public static void main(String[] args) {
        new Ques0328();
    }
    
    Ques0328() {
        Ques0328 t1 = this;
        Ques0328 t2 = this;
        
        synchronized (t1) {
            try {
                t2.wait();  // 11
                System.out.println("wait");
            } catch (InterruptedException e) {
                System.out.println("Interrupted");
            } catch (Exception e) {
                System.out.println("Exception");
            } finally {
                System.out.println("Finally");
            }
        }
        System.out.println("OK");
    }
}

今日问题:
请问主程序运行结果是什么?

你可能感兴趣的:(Java每日一题20170328)