일단 throws는 class나 method에 써주는 거임.

예를 들어 


private int divide(int x, int y) throws ArithemicException{

return x/y;




그리고 throw는 try catch 문에 쓰임.


private int maximumSum(int x, int y){

try{

int sum=x+y;

if(sum>100){

throw new ArithmeticException

}

}

catch(ArithmenticException e){

System.out.println("The sum cannot be greater than 100");

}

}




그러니까 throws는 클래스나 메소드에 쓰이는데, 내가 원하는 에러상황을 표현할 수 없음.

throw는 try catch문에 쓰이지만, 내가 원하는 에러상황을 표현할 수 있음.



맞아???

혹시 빠진 내용 있을까?