Exception

Can the 'throws' clause can be used to raise an exception?

E

Expert

Verified

No, the “throws” clause cannot be utilized in order to raise an exception. The throw statement indicates the occurrence of an exception while the execution of the program. Whenever the program encounters a throw statement, the method terminates and returns an error to the calling method.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.