title: Rectangle and Rectangle2D Difference
body: <p>Currently, I use Rectangle and Rectangle2D (Rectangle2D.Double) interchange.</p>
  
  <p>I was wondering what is the consideration I shall take in, while choosing the correct data type? I do not see any obvious difference, except the Rectangle (sub class of Rectangle2D) are having more API functions.</p>
  
  <p>Thanks.</p>