I want to throw an exception from if block which is written in a try block. If there is an exception I want it to be handled in the catch block. If I use throw new Exception() in the "if" statement, will it go to the catch block defined as catch(Exception ex). Can I get some help here ? thanks.
posted 7 years ago
The easiest way to find the answer is to try it. Write some code and see what happens. Experimentation is a great way to learn.