ANKO Code Academy
AI-Native Coding Learning Platform
Courses
Labs
Discussions
quiz
Exception Handling Quiz
Question 1 of 10
Score: 0/10
What is the difference between 'throw;' and 'throw ex;' in a catch block?
They are exactly the same
'throw;' preserves the stack trace, 'throw ex;' resets it
'throw ex;' preserves the stack trace, 'throw;' resets it
'throw;' only works with specific exception types
Check Answer
Previous
Next Topic