Junior — Middle
What basic exception serves as the ancestor for all other exceptions in the language?
sobes.tech AI
Answer from AI
In the Java language (which is used for Android development), the basic exception that serves as the ancestor for all other exceptions is the class java.lang.Throwable.
However, when specifically talking about exceptions, their base class is java.lang.Exception, which inherits from Throwable. There is also java.lang.Error, but it is intended for serious errors that are usually not handled.
Therefore, for exception handling, classes that inherit from Exception are typically used.