public class Exception {
   public static void main(String[] args) {

             Scanner in = new Scanner(new File("test_text.txt"));
  
}

}

 

이 예문을 throw로 (try catch말고) FileNotFoundException오류가나는걸

 

예외처리로 만들고싶은데요

 

Exception e = new Exception();라는걸 선언해야한다는건 알겟는데 위치도모르겟고

 

throw e를 어디에써야하는지도모르겟습니당..

 

트라이 캐치 는정말간단한데 throw는많이 햇갈리네요 ㅜㅜ