title: Java : If A extends B and B extends Object, is that multiple inheritance
body: <p>I just had an interview, and I was asked a question. </p>
  
  <p><strong>Interviewer</strong> - Does Java support multiple inheritance?</p>
  
  <p><strong>Me</strong> - No</p>
  
  <p><strong>Interviewer</strong> - Each class in Java extends class Object (except class Object) and if we externally extend one class like</p>
  
  <pre><code>Class A extends B{
    // some code here
  }
  </code></pre>
  
  <p>then you can say that class A extend class B and class Object, which means it is multiple inheritance. So how can you say Java does not support multiple inheritance?</p>
  
  <p><strong>Me</strong> - Actually class B extends class Object, so when you extend class B in class A then class A extends class Object indirectly. This is multi-level inheritance, not multiple inheritance.</p>
  
  <p>But my answer did not satisfy him.</p>
  
  <p>Is my answer correct? Or where am I wrong?
  What actually happens internally?</p>