Back to Multiple Choice Quiz
Catching a Specific Exception
C# quiz · Question 36What does this code print?
Code
1try {2 int[] a = new int[2];3 Console.Write(a[5]);4}5catch (IndexOutOfRangeException) {6 Console.Write("caught");7}