This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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,