title: Same class name in different packages
body: <p>Can same class exist in multiple packages? 
  In other words, can I have <code>Foo.java</code> class in <code>com.test.package1</code> and <code>com.test.package2</code>?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Now I copied class from package 1 and placed in to package 2 and now I am creating an instance of that class, I want this instance to point to class present in package 1 but currently it points to package1 path, how can i modify it?</p>
  
  <p>Oh so I cannot do something like:</p>
  
  <pre><code>Foo = new Foo() // pointing to Foo class in package 1
  Foo = new Foo() // pointing to Foo class in package 2
  </code></pre>