因簡書改版后無法添加擴展鏈接卖陵,20170327問題解析請到公眾號查看吴藻,問題解析在公眾號首發(fā),公眾號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");
}
}
今日問題:
請問主程序運行結果是什么?