This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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,