title: How to get the number of possible targets at a call site?
body: <p>In Java, most methods are virtual methods. At a call site, different actual methods may be invoked depending on the objects. This is dynamic dispatch.</p>
  
  <p><strong>Question</strong>: Can we get the number of targets for a call site statically? For example, from bytecodes.</p>
  
  <p>FYI: the answer to "<a href="https://stackoverflow.com/questions/9453701/what-is-virtual-method-calling-in-java">virtual method</a>" has a simple example of dynamic dispatch.</p>