javaexceptionchecked-exceptionsunchecked-exception

Java Performance concern in Exception Handling


I am aware of the Checked and Unchecked Exception in Java.

In a multi-tiered environment, does unchecked Exception has a better performance over checked Exception?


Solution

  • There is absolutely zero performance difference. They're both just Exceptions.

    Checked-/unchecked-ness is purely a compile-time concept.