Dell Technologies Interview Question

What's the difference between just "throw" and "throw Exception"?

Interview Answer

Anonymous

Mar 9, 2020

Throw: when we use throw it will give the exact stack trace where exception occured. Throw ex: it will chnage the stack trace and show from where the ex object is been thrown