0

When I run this program on PC it says -- Exception cannot be converted to Throwable While it runs without error on SoloLearn

https://code.sololearn.com/c2reohFqpNXR/?ref=app

14th Sep 2019, 12:16 PM
navneet
navneet - avatar
2 Respostas
+ 2
Exception is a superclass of NullPointerException ,if you dont catch subclass exception than parent class handle subclass exception (polymorphism)
14th Sep 2019, 12:50 PM
Prathvi
Prathvi - avatar
0
Uhh, I don't know what did you do to your PC but the point of the Exception class is to be Throwable.
14th Sep 2019, 12:20 PM
Airree
Airree - avatar