compiling the above code,this is the error that i get.
can someone explain me why i get this? I understand that Exception is more general when compared to RuntimeException which is specific?the answer should have been e.am i wrong?RuntimeException IS A Exception,is that correct??
Rohan kanade wrote:RunTimeException is a subclass of Exception , So it must be declared in a catch clause before Exception because it is narrower/precise than Exception.....
you can neglect catching a runtimeException,