title: I have two classes with same name and same package structure in different jars. Is it possbile to choose a class from jar specifically?
body: <p>As mentioned I I have two classes with same name and same package structure in different jars.
  Lets say<br>
  in <strong>jar1</strong> my class is <strong>a.b.c.ClassName</strong> and<br>
  in <strong>jar2</strong> my class is <strong>a.b.c.ClassName</strong>.<br>
  I have different constructors for the classes to differentiate.</p>
  
  <p>My question is, Is it possible to create object based on constructor.
  Example,</p>
  
  <pre><code>if(condition){
  a.b.c.ClassName obj = new a.b.c.ClassName(Param);
  }
  else{
  a.b.c.ClassName obj = new a.b.c.ClassName(Param, AnotherParam);
  }
  </code></pre>
  
  <p>Thanks,</p>