20170323問題解析請點擊今日問題下方的「【Java每日一題】20170324」查看(問題解析在公衆號首發,公衆號ID:weknow619)java
package Mar2017; public class Ques0324 extends Thread{ public static void main(String[] args) { Ques0324 test1 = new Ques0324(); Ques0324 test2 = new Ques0324(); test1.start(); test2.start(); } public void run() { System.out.println("1"); yield(); System.out.println("2"); } }
今日問題:
請問主程序運行結果是什麼?(點擊如下「【Java每日一題】20170324」查看20170323問題解析)
題目原發佈於公衆號、簡書:【Java每日一題】20170324,【Java每日一題】20170324 (也能夠掃描頭像二維碼查看)
code