Question: What is the difference between throw exceptions and throw clauses?
- Throw clauses fire only at runtime, while throw exceptions can fire at any time.
- Throw exceptions overwrite the stack trace, while throw clauses retain the stack information.
- Throw clauses overwrite the stack trace, while throw exceptions retain the stack information.
- Throw exceptions fire only at runtime, while throw clauses can fire during compile time.
Answer: The correct answer of the above question is Option B:Throw exceptions overwrite the stack trace, while throw clauses retain the stack information.