← Back to Question List
C# Quiz #36
Catching a Specific Exception
What 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}