Why exception occurs in this program?

Yes, if you don’t intend to handle or rethrow exceptions, you shouldn’t catch them.

Leave a Comment