title: Why are hashCode() and getClass() native methods?
body: <p>I checked the source code of <code>Object</code> class where I found that method declaration of <code>getClass()</code> was</p>
  
  <pre><code>public final native Class&lt;?&gt; getClass();
  </code></pre>
  
  <p>And the declaration of <code>hashCode()</code> was </p>
  
  <pre><code>public native int hashCode();
  </code></pre>
  
  <p>Why are these two methods <code>native</code> methods in the class and how can I get the source code of those methods?</p>