title: Example of ´instanceof´
body: <pre><code>public class TableModel2 extends TableModel1 { ... }
  
  TableModel2 tableModel = new TableModel2();
  
  boolean t1 = tableModel instanceof TableModel1;
  boolean t2 = tableModel instanceof TableModel2;
  </code></pre>
  
  <p>In the above example, <code>t1</code> and <code>t2</code> are <code>true</code>. So, how could I differentiate between <code>TableModel1</code> and <code>TableModel2</code> using <code>instanceof</code>?</p>