title: Java Point, difference between getX() and point.x
body: <p>I am confused to as why the Java Point class takes in two int paramaters and the getX() and getY() methods return doubles. 
  For example I could define a Point</p>
  
  <pre><code>Point p = new Point(4,6);
  </code></pre>
  
  <p>If I were to call..</p>
  
  <pre><code>p.getX();
  </code></pre>
  
  <p>It would return 4.0. and if I were to call </p>
  
  <pre><code>p.x;
  </code></pre>
  
  <p>I would get 4.</p>
  
  <p>Any reason for this?</p>