引入异常处理

时间:2017-11-18 11:44:40

标签: java exception exception-handling

我可以在以下示例中使用异常处理吗?

 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);
}

0 个答案:

没有答案