title: java class file contains comments - why?
body: <p>When I open <code>MyClass.class</code> file in my Eclipse editor, it shows me comments as well the code.</p>
  
  <p>Shouldn’t the <code>.class</code> file be optimized to remove comments? I was expecting to see optimized code sans comments.</p>
  
  <p>I see this when I open String.class in Eclipse.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    /**
       * Returns a hash code for this string. The hash code for a
       * &lt;code&gt;String&lt;/code&gt; object is computed as
       * &lt;blockquote&gt;&lt;pre&gt;
       * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
       * &lt;/pre&gt;&lt;/blockquote&gt;
       * using &lt;code&gt;int&lt;/code&gt; arithmetic, where &lt;code&gt;s[i]&lt;/code&gt; is the
       * &lt;i&gt;i&lt;/i&gt;th character of the string, &lt;code&gt;n&lt;/code&gt; is the length of
       * the string, and &lt;code&gt;^&lt;/code&gt; indicates exponentiation.
       * (The hash value of the empty string is zero.)
       *
       * @return  a hash code value for this object.
       */
      public int hashCode() {
          int h = hash;
          if (h == 0 &amp;&amp; value.length &gt; 0) {
              char val[] = value;
  
              for (int i = 0; i &lt; value.length; i++) {
                  h = 31 * h + val[i];
              }
              hash = h;
          }
          return h;
      }</code></pre>
  </div>
  </div>
  </p>