title: Java code to get list of child classes that extends parent class
body: <p>I would like to get the list of child classes which extends a particular parent class.For example: -
  Consider the following case where Class B  extends class A and Class C extends class B. I would like to know which are the class that have extended Class A directly or indirectly </p>
  
  <pre><code>Class A
  {
  /* with some method and parametres
  */
  }
  
  Class B extends A
  {
  /* with some method and parametres
  */
  }
  
  Class C extends B
  {
  /* with some method and parametres
  */
  }
  </code></pre>
  
  <p>I would to get the list of child class name from a java code.
  i.e I need to write a java class which can give me the list of child classes when I give the name of parent class as Input.</p>
  
  <p>Thanks in advance.</p>