using System;
class Program
{
static void Main(string[] args)
{
try
{
int[] arr = new int[5];
Console.WriteLine(arr[10]);
}
catch (Exception ex)
{
Console.WriteLine(ex.GetType());
}
}
}
System.Exception
System.IndexOutOfRangeException
System.NullReferenceException
System.DivideByZeroException