Unchecked Exception
A runtime exception the compiler does not require code to catch or declare.
What is Unchecked Exception in Java?
Unchecked Exception — A runtime exception the compiler does not require code to catch or declare.
class Reservation {
void reserve(int seats) {
if (seats < 1) {
throw new IllegalArgumentException("seats");
}
}
}
Level: Journeyman · More Java terms at this level
Updated