Android 개발 메모
예외 처리 throws
Dexx
2015. 6. 8. 16:14
throws : 예외처리. 정상적으로 동작하는 것이 아님을 알려주는 것으로 정상적으로 나오는 값이 아닌 다른 구멍으로 나오도록 하고 그 구멍을 던져 준다는 의미
public int subtract(int a, int b) throws UnImplementedException;
public int divide(int a, int b) throws UnImplementedException{
throw new UnImplementedException("나누기 구현 안함"); //예외상황 처리로 return값이 없어도 됨
}