Junior — Middle
What is the base class inheritance used for implementing exceptions in programming languages?
sobes.tech AI
Answer from AI
In Java, all exceptions are implemented through inheritance from the base class java.lang.Throwable. From it, two main subclasses are inherited: Error and Exception. For custom and checked exceptions, inheritance is usually from the Exception class or its subclasses. Thus, the base class for implementing exceptions is Throwable.