Simple Java Question
<p>Can same class exist in multiple packages ? 
In other words, can I have <code>dummy.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 package1 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 1 package Foo class
Foo = new Foo() // pointing to 2 package Foo class
</code></pre>
