title: What is the difference in usage of primitive and wrapper data type and what is the need of wrapper data type?
body: <p>I searched it all over the web, but all the answers just consisted of the difference. I know the difference, but I don't understand the difference in their applications. </p>
  
  <p>For example, suppose we have to take two floating values, if we use double, we can easily compare using <code>a==b</code>, whereas if we use Double, we will have to use <code>a.equals(b)</code>.</p>