publicTimerTest1(){
timer1=newTimer();
timer1.schedule(newTimerTaskTest1(),1000,1000*3);
throw newRuntimeException();
}
publicTimerTest2(){
timer2=newTimer();
timer2.schedule(newTimerTaskTest2(),1000,1000*3);
}
timer1 先与 timer2 创建 则timer2不会执行
TimerTest1中抛出异常 则
若在 timerTest2 中抛出异常将不影响 timer1 的执行.