"instance of" "type of" What is the use case of this?
<p>While doing some casual reading I came across an interesting quote by Scott Meyers</p>

<blockquote>
  <p>Anytime you find yourself writing
  code of the form "if the object is of
  type T1, then do something, but if
  it's of type T2, then do something
  else," slap yourself.</p>
</blockquote>

<p>I was just wondering why Java has "instance of" operator when you could do the same thing by overridden methods? When is it actually used?</p>
