Language/Java

Checked Exception, Unchecked Exception 차이

annajinee 2021. 3. 26. 14:46

Checked Exception

: 컴파일 시점에 체크된 exception

: runtime exception을 상속하지 않음, 명시적으로 꼭 처리해야 함

 

  • IOException
  • SQLException
  • DataAccessException
  • ClassNotFoundException
  • InvocationTargetException
  • MalformedURLException

UnCheckedException

: 런타임 시점에 체크된 exception

: runtime exception을 상속함 

 

참고 : 

 

자바 예외 구분: Checked Exception, Unchecked Exception

자바에서 예외는 어떻게 구분할까? Checked Exception과 Unchecked Exception의 차이는 무엇일까?

madplay.github.io

crunchify.com/better-understanding-on-checked-vs-unchecked-exceptions-how-to-handle-exception-better-way-in-java/

 

Better Understanding on Checked Vs. Unchecked Exceptions - How to Handle Exception Better Way in Java? • Crunchify

Checked Exception What is Checked Exception in Java Programming language. In simple language: Exception which are checked at Compile time called Checked

crunchify.com