Multiple choice .net c-sharp

A method_____an exception when that method detects that a problem has occured.

  1. Trys

  2. Catches

  3. Throws

  4. a and b

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A method throws an exception when it detects a problem. Try blocks contain code that might throw, and catch blocks handle thrown exceptions. The method itself throws when it encounters the error condition.