Assume I have a project K
K depends lib.jar
In lib.jar
, there is a class named x.y.z.Foo
If i create the same class x.y.z.Foo
in K , then in this project when I create a instance of Foo
, now will JVM use Foo
in K rather than in lib.jar
?
And if it's unstable or depends on something , how to make sure that Foo
should use K's version rather than lib.jar
?