Riddle me this...

time to read 6 min | 1110 words

What is the result of the following code:

public class Foo

{

      public static void Recursive()

      {

            Recursive();

      }

     

      public static void Main(string[]args)

      {

            try

            {

                  Recursive();

            }

            catch(StackOverflowException  e)

            {

                  Console.WriteLine("Bummer");

            }

      }

}

In .Net 1.0/1.1 ?

In .Net 2.0 ?