Answer:
When we use "throw" statement, it preserves or gives us the original stack trace.
When we use "throw ex" statement, stack trace of the exception will be replaced with the stack trace starting at the re-throw point.
So, it is very important to use throw statement instead of throw ex statement as it gives more accurate stack trace.
Asked In: Many Interviews |
Alert Moderator