I know this question may sound silly, but it happened. I put some statements in catch to handle the exception(that it should go to some screen) and it always used to go in that catch block. So I removed the try/catch so that my app crashes so that I could identify the exception. But, interestingly, it didn’t crash. Is it possible?
Share
See if your method has a “throws XXXException” declaration. if true, that means the caller (or caller’s caller …. ) has catched the exception and handled it there.
If the method didn’t declare any exceptions to throw, that means the “exception” you catched is a “RuntimeException”, which could be thrown without declaration.
That’s the 2 scenarios where you won’t get an app crash.