因簡(jiǎn)書(shū)改版后無(wú)法添加擴(kuò)展鏈接,20170327問(wèn)題解析請(qǐng)到公眾號(hào)查看,問(wèn)題解析在公眾號(hào)首發(fā),公眾號(hào)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");
}
}
今日問(wèn)題:
請(qǐng)問(wèn)主程序運(yùn)行結(jié)果是什么?