namespace Study_Exception
{
    class Program
    {
        static void Main(string[] args)
        {
            string st1 = "This is a string";
            int[] int1 = {2,3};
            int int2;
            char[] c1;

            try
            {
                st1 = Console.ReadLine();
                int st2;
                st2 = st1[231];
            }
            catch (System.IndexOutOfRangeException ex)
            {
                Console.Write("Index is out of range");
            }
            catch (System.AccessViolationException ex)
            {
                Console.WriteLine("AccessViolationException");
            }
            finally
            {
                Console.WriteLine("Did we even get here?");
            }
            Console.ReadKey();


        }
    }
}