In C#, try, catch or finally keywords are used for an exception handling. However, these keywords should follow certain rules otherwise they throw compile time errors. Some scenarios are given below, which demonstrate what the scenarios are, which throw compilation errors are given below.

In some interview questions, you might have come across the scenarios shown above, so I believe this blog can help you answer those type questions.