Tuesday, April 8.
  • Top Posts

    How is Exception Handling implemented in C#?

    Exception handling is done using four keywords in C#:
    • try â€“ Contains a block of code for which an exception will be checked.
    • catch â€“ It is a program that catches an exception with the help of exception handler.
    • finally â€“ It is a block of code written to execute regardless whether an exception is caught or not.
    • Throw â€“ Throws an exception when a problem occurs.

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728