Which is the parent class of java.lang.Exception and java.lang.Error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Which is the parent class of java.lang.Exception and java.lang.Error?

15th Sep 2019, 6:29 PM
Wajeeha Farooqui
Wajeeha Farooqui - avatar
1 Answer
0
their parent class is called Throwable, when you create your own exceptions you write extends Throwable.
15th Sep 2019, 6:56 PM
Nonea
Nonea - avatar