Sudeep Chourasia
Can you use the ‘throws’ clause to raise an exception?
By Sudeep Chourasia in .NET on Apr 28 2016
  • Sudeep Chourasia
    Apr, 2016 28

    No, the throws clause cannot be used to raise an exception. The throw statement signals the occurrence of an exception during the execution of a program. When the program encounters a throw statement, the method terminates and returns the error to the calling method.

    • 0

Most Popular Job Functions