title: Catch vs Catch (Exception e) and Throw vs Throw e
body: <p>Are these two code examples the same? <strong>Catch</strong> and <strong>Catch (Exception e)</strong> have the same output, and the result is also the same if I write <strong>Throw</strong> or <strong>Throw e</strong>.</p>
  
  <p>Main: </p>
  
  <pre><code>try
  {
      A();
      //B();
  }
  catch (Exception e)
  {
      Console.WriteLine("{0} exception caught.", e);
  }
  </code></pre>
  
  <p>Code 1:</p>
  
  <pre><code>static void A()
  {
      try
      {
          int value = 1 / int.Parse("0");
      }
      catch (Exception e)
      {
          throw e;
      }
  }
  </code></pre>
  
  <p>Code 2:</p>
  
  <pre><code>static void A()
  {
      // Rethrow syntax.
      try
      {
          int value = 1 / int.Parse("0");
      }
      catch
      {
          throw;
      }
  }
  </code></pre>