81. How do you handle exceptions in C#?
Use try-catch-finally blocks to catch and manage exceptions.
82. Difference between throw and throw ex?
throw: preserves stack tracethrow ex: resets stack trace
83. What are checked vs unchecked exceptions in C#?
C# only has unchecked exceptions; all exceptions are runtime-checked.
84. What is custom exception?
A user-defined class inheriting from Exception for specific error scenarios.
85. Best practices for exception handling?
- Catch only specific exceptions
- Avoid empty catch blocks
- Log exceptions
- Rethrow when necessary