We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
but a point in here is taht what if i give the Eception class instead of the specific class it has no chang except that Exceptionn class is the superclass.it should give the same ans but what is the diff.When i tried your way i got the answer.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Exception Handling (Try-catch)
You are viewing a single comment's thread. Return to all comments →
but a point in here is taht what if i give the Eception class instead of the specific class it has no chang except that Exceptionn class is the superclass.it should give the same ans but what is the diff.When i tried your way i got the answer.