i want to know do finally block still execute in exception handling even if there is no matching catch block for the try block and if not then what happens?
Also i want to now system exception and application difference
i want to know do finally block still execute in exception handling even if
Share
Yes, you do not need a
catchblock at all. Thefinallyblock always executes.As to the difference between
System.ExceptionandSystem.ApplicationException:Exceptionis the base class for all exceptions;ApplicationExceptionshould be used when a non-fatal application error occurs. See the MSDN documentation.Also see best practices for handling exceptions.