title: What is the difference between "IS -A" relationship and "HAS-A" relationship in Java?
body: <p>I am new to JAVA and just started learning &quot;IS-A&quot; and &quot;HAS-A&quot; relation but I didn't really get it.</p>
  <p>What is the difference between &quot;IS-A&quot; and &quot;HAS-A&quot;?<br />
  When should I use &quot;IS-A&quot; and when should I use &quot;HAS-A&quot;?</p>