我可以在以下示例中使用异常处理吗?
public setTime(int hour, int minute, int second){
this.hour = hour;
this.minute= minute;
this second = second;
和
public static final MIN_REFRESH_RATE = 1;
public static final MAX_REFRESH_RATE = 100;
public void setRefreshRate(int rate){
setRefreshInreval(int rate);
}