错误是这样的: E/AndroidRuntime(320): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime(320): at com.android.vosori.Amp$1.onChe
worker.setDaemon(true); System.out.println("Exit from main method");}
由于worker是在main()线程上联接的守护程序线程,因此不应该打印|work|,因为用户线程main()首先完成,而且由于worker是守护程序线程,所以当main()线程终止时,它也会停止。在多次执行该程序之后,我观察到以下不同