Can same class exist in multiple packages ?
In other words, can I have dummy.java
class in com.test.package1
and com.test.package2
?
Update
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 ?
Oh so I cannot do something like:
Foo = new Foo() //pointing to 1 package Foo class
Foo = new Foo() // pointing to 2 package Foo class