Discussion :: Exception Handling
-
Which of the following statements are correct about the exception reported below?
Unhandled Exception: System.lndexOutOfRangeException: Index was outside the bounds of the array: at FreshergateConsoleApplication.MyProgram.SetVal(Int32 index, Int32 val) in D:\Sample\FreshergateConsoleApplication\MyProgram.cs:line 26 at FreshergateConsoleApplication.MyProgram.Main(String[] args) in D:\Sample\FreshergateConsoleApplication\MyProgram.cs:line 20- The CLR failed to handle the exception.
- The class MyProgram belongs to the namespace MyProgram.
- The function SetVal() was called from Main() in line number 20.
- The exception occurred in line number 26 in the function SetVal()
- The runtime exception occurred in the project FreshergateConsoleApplication.
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment