title: How can the Object class be a super class of subclasses?
body: <p><strong>Fact 1:</strong></p>
  
  <blockquote>
    <p>Java does not support multiple inheritance.</p>
  </blockquote>
  
  <p><strong>Fact 2:</strong></p>
  
  <blockquote>
    <p>Object is a superclass of all other classes</p>
  </blockquote>
  
  <p>If I have a class <code>Parent</code> and a class <code>Child</code> which is inheriting the class <code>Parent</code>:</p>
  
  <pre><code>class Parent {
  
  }
  
  class Child extends Parent {
  
  }
  </code></pre>
  
  <p>In this case, how will the class <code>Child</code> inherit the <code>Object</code> class, if Java does not support multiple inheritance?</p>
  
  <p>How is the relationship between these three defined?</p>
  
  <p><strong>Option 1:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/qw1Jq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qw1Jq.png" alt="enter image description here"></a></p>
  
  <p><strong>Option 2:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/6ZwPj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6ZwPj.png" alt="enter image description here"></a></p>